package Demo;
public class Demo3 {
public static void main(String[] args) {
String str = "helloworld";
System.out.println(str.charAt(0));//h
System.out.println(str.charAt(5));//w
}
}
时间: 2024-07-30 10:07:28
package Demo;
public class Demo3 {
public static void main(String[] args) {
String str = "helloworld";
System.out.println(str.charAt(0));//h
System.out.println(str.charAt(5));//w
}
}