public class StringEx2 {
public static void main(String[] args) {
String hannah = "Did Hannah see bees? Hannah did.";
System.out.println("The lengh of String is: "+hannah.length());
System.out.println("The character at 12th location: "+hannah.charAt(12));
}
}
0 comments:
Post a Comment