import java.util.*;
import static java.lang.Math.*;
import static java.lang.System.*;
public class P04
{
	public static void main(String[] args)
	{
//		String methods
//	    charAt(4)  Returns the char value at the specified index.
//	       "Klein".charAt(3) // is i
//	         
//	    length()  Returns the length of this string.
//	       "Klein".length()   // 5
//	    substring()  Returns a new string that is a substring of this string.
//	       "Klein".substring( 2)  //"ein"
//	       "Klein".substring(1, 3)  //"le"
//	    indexOf()  	       "Klein".indexOf(' e')  //2
//
//	    toUpperCase() 	       "Klein".toUppercase()   //"KLEIN"
//      replace()
//============================= Definitions ====================================
		int loc1 = 0;
		String school = "KLEIN HIGH SCHOOL";
		String message = "One of the greatest public schools.";
		out.println(school.charAt(3));
		out.println(message.length());
		out.println(message.substring(3,8));
		out.println(message.substring(8));
		out.println(school.indexOf("I"));
		loc1 = school.indexOf("I");
		out.println(school.indexOf("I",loc1+1));
		out.println(school.toLowerCase());
		out.println(message.toUpperCase());
		out.println(message.replace(' ','*'));
		out.println(school.replace("HIGH","P00p"));
    }
}