import java.io.*;
      import java.lang.String.*;
      //javac string_equals.java
      class string_equals{
      public static void main(String arguments[])throws IOException
      {
      InputStreamReader isr = new InputStreamReader(System.in);
      BufferedReader br = new BufferedReader(isr);
      //needs throws IOException
      System.out.print("Type some thing : ");
      String str1 =br.readLine();
      System.out.print("Type the same : ");
      String str2 =br.readLine();
      if (str1.equals(str2)){System.out.print("String matched");}
      if (str1.compareTo(str2)<0) {System.out.print("String did not match");}
      if (str1.equalsIgnoreCase(str2)){System.out.print("Ignorred case");}
      }
      }