Examples of String methods in Java