package ch4_package;
import java.io.*;
//import java.util.Vector;
public class Test_This {
Test_This tt = new Test_This();
public static void main(String[] args) throws IOException
{
// TODO Auto-generated method stub
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String str ="";
try{
//System.out.println("---While Loop---");
System.out.print("Please enter a word: ");
str = br.readLine();
Process pp = new Process();
pp.read_input(str);
}//try
catch(NumberFormatException e) { System.out.println("data was blank");}
}
}
class Process
{
public void read_input(String str)
{
if(str.endsWith("jee")) {
System.out.println("ends with with jee");

}
else
{
int n1 = str.length()-3;
String str2 = str.substring(n1,str.length());
System.out.println("starts with " + str2);

}
}
}//end of class process