Add examples on working with strings in Java.