Lecture 23
18
Methods Returning/Constructing new Strings
•concat(String str);      // Can also use +
•
•replace(char old, char new); // Not in place!
•
•substring(int beginIndex);   // new String!
•substring(int beginIndex, int endIndex);
•
•toLowerCase();      // new String!
•toLowerCase(Locale locale); 
•toUpperCase();
•toUpperCase(Locale locale);
•
•trim();
•
•
•