os :windows7 x64
jdk:jdk-8u131-windows-x64
ide:Eclipse Oxygen Release (4.7.0)
code:
package jizuiku.t00; public class Demo6 { public static void main(String[] args) { String str = "abc01234543210cba"; for (int i = 0, stringLength = str.length(); i < stringLength; ++i) { System.out.print(str.charAt(i)); } } }
result:
Java优秀,值得学习。
学习资源:API手册+Java源码。
时间: 2024-10-10 13:09:50