/**
 *
 * @author Ramana Isukapalli
 *
 * Example to show how to use the Java built-in String class.
 */
public class StringExample {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        String s  = new String ("abcdefghij");
        String s2 = new String ("xyz");
        System.out.println (s);
        System.out.println ("Length of s is: " + s.length());
        System.out.println ("Fifth character of s is: " + s.charAt(4));
        System.out.println ("s.equals(s2): " + s.equals(s2));
        System.out.println ("s2.compareTo(s): " + s2.compareTo(s));
    }
}
