Creating objects of type String can be accomplished in one of two ways:

  1. String name = new String (jordan)
  2. String name = "jordan"

Utilizing the methods defined by the String class consists of writing dot notation in the form of object name.methodL). For example, utilizing the String created above, a method called jordan to find the third character in the string would be written as follows:

jordan.charAt(3);

This would return an r to the calling program.