Welcome to DrJava. Working directory is C:\Users\rlkraft.PNW > "hello".length() 5 > "cat".toUpperCase() "CAT" > > int x = 6 > x 6 > String s = "dog" > s "dog" > String s1 = "dog"; > s1.length() 3 > s1.toUpperCase() "DOG" > s1 "dog" > String s2 = "Hello" > s2.charAt(3) 'l' > s2.charAt(4) 'o' > s2.charAt(5) java.lang.StringIndexOutOfBoundsException: String index out of range: 5 at java.lang.String.charAt(String.java:658) > s2.charAt(0) 'H' > for (int i = 0; i < s2.length(); i ++) System.out.print( s2.charAt(i) ); Hello> for (int i = 0; i < s2.length(); i ++) System.out.println( s2.charAt(i) ); H e l l o > s2 = "This is a longer string." "This is a longer string." > for (int i = 0; i < s2.length(); i ++) System.out.println( s2.charAt(i) ); T h i s i s a l o n g e r s t r i n g . > > s1 "dog" > s1.endsWith("og") true > s1.endsWith("g") true > s1.endsWith("s") false > s1.startsWith("s") false > s1.startsWith("d") true > s1.startsWith("do") true > s1.startsWith("dog") true > s1.startsWith("dogs") false > s1.charAt(2) 'g' >