Working with Strings

Working with Strings: Understanding the String Class, Useful String Methods, Common Tasks.

Updated

  1. Understanding the String Class (Novice): A Java String is a sequence of characters that can't be changed once it's made, so every change creates a new string.
  2. Useful String Methods (Apprentice): Find, cut, change case and split text with the String methods indexOf, lastIndexOf, substring, toLowerCase, toUpperCase and split.
  3. Common Tasks (Apprentice): Input text rarely arrives in the format you need, so developers reformat it every day, by trimming, splitting, joining, searching, padding, replacing and reversing.