//TestStringExamples.java

import java.util.Scanner;

public class TestStringExamples
{
    public static void main(String[] args)
    {
        //Put test code here ...
        /*
        String s = "Hello, ";
        String t = s.concat("world!");
        System.out.println(t.length());
        System.out.println("Hello, world!".length());
        System.out.println(s);

        String s1 = "Hello";
        String s2 = "hello";
        System.out.println(s1.equals(s2));
        System.out.println(s1.equalsIgnoreCase(s2));

        System.out.println("big".compareTo("small"));
        System.out.println("small".compareTo("big"));
        System.out.println("abcd".compareTo("abcd"));
        System.out.println("big".compareTo("Small"));

        String s = "Hello, world! How low can you go?";
        System.out.println(s.indexOf("lo"));
        System.out.println(s.lastIndexOf("lo"));

        String s = "Hello, world! How low can you go?";
        System.out.println(s);
        System.out.println(s.toUpperCase());
        System.out.println(s.toLowerCase());
        System.out.println(s);

        System.out.println("abcdaabcab");
        System.out.println("abcdaabcab".replace('a', 'z'));
        System.out.println("abcdaabcab".replace("ab", "xxyyzz"));
        */

        String s = "Hello, world! How low can you go?";
        System.out.println(s.substring(14));
        System.out.println(s.substring(14, 19));
    }
}

