String objects are immutable. Use StringBuilder for repeated modification. Compare contents with equals(), not ==.
1Common methods
length, charAt, substring(begin, end), indexOf, equals, equalsIgnoreCase, compareTo, split, trim, strip, replace, toUpperCase, join, repeat