public class Equals {
  private static void show(String x, String y) {
    System.out.println("<tr><td>" + x + "<td>" + y + "<td>" + (x == y ? "Same" : "Different"));
  }
	
  public static void main(String[] args) {
    System.out.println("<html><head>");
    System.out.println("<link rel=\"stylesheet\" type=\"text/css\" href=\"../teaching.css\">");
    System.out.println("</head><body><table border><tr><td>X<td>Y<td>X == Y");
    
    show("abc", "abc");
    show("xyz", new String("xyz"));
    
    System.out.println("</table></body></html>");
  }
}