- length: counts the number of characters in a string
String greeting = "Hello, World!";
int n = greeting.length(); // sets n to 13
- toUpperCase:
creates another String object that contains the characters of the
original string, with lowercase letters converted to uppercase
String river = "Mississippi";
String bigRiver = river.toUpperCase(); // sets bigRiver to "MISSISSIPPI"
- When applying a method to an object, make sure method is defined
in the appropriate class
System.out.length(); // This method call is an error