public class StringStuff { public static void main(String[] args) { String s = new String("hip hip Hooray!"); System.out.println(s); // shorthand: you don't need to explicitly // call the constructor to make a String String word = "That's all, folks!"; System.out.println(word); System.out.println("\nCalling the toUpperCase method"); System.out.println(word.toUpperCase()); System.out.println("the original word: " + word); String lower = word.toLowerCase(); System.out.println("\nword, changed to lowercase: " + lower); System.out.println(); String upper = word.toUpperCase(); System.out.println(lower + word + upper); System.out.println(); System.out.println("length of word: " + word.length()); int lowerLength = lower.length(); System.out.println("Lower length is: " + lowerLength); System.out.println(); } //main }