// This appears in Core Web Programming from
// Prentice Hall Publishers, and may be freely used
// or adapted. 1997 Marty Hall, hall@apl.jhu.edu.

public class StringCompare {
  public static void main(String[] args) {
    String s1 = "This is a test";
    if (args.length > 0) {
      System.out.println(s1 == args[0]); 
      System.out.println(s1.equals(args[0]));
    }
  }
}

