Language: Java

class Main {
  public static void main(String[] args) {
    java.util.Scanner sc = new java.util.Scanner(System.in);
    String X=sc.next();
    String Y=sc.next();
    int x;
    int y;
    if(X=A) x=10;
    else if(X='B') x=11;
    else if(X='C')  x=12;
    else if(X='D')  x=13;
    else if(X='E')  x=14;
    else if(X='F')  x=15;
    if(Y='A') y=10;
    else if(Y='B')  y=11;
    else if(Y='C')  y=12;
    else if(Y='D')  y=13;
    else if(Y='E')  y=14;
    else if(Y='F')  y=15;
    if(x<y)println("<");
    else if(x==y)println("=");
    else {println(">");}
  }

  /* 以下、標準出力用関数 */
  static public void print(byte what) { System.out.print(what); System.out.flush(); }
  static public void print(boolean what) { System.out.print(what); System.out.flush(); }
  static public void print(char what) { System.out.print(what); System.out.flush(); }
  static public void print(int what) { System.out.print(what); System.out.flush(); }
  static public void print(long what) { System.out.print(what); System.out.flush(); }
  static public void print(float what) { System.out.print(what); System.out.flush(); }
  static public void print(double what) { System.out.print(what); System.out.flush(); }
  static public void print(String what) { System.out.print(what); System.out.flush(); }
  static public void print(Object... variables) { StringBuilder sb = new StringBuilder(); for (Object o : variables) { if (sb.length() != 0) { sb.append(" "); } if (o == null) { sb.append("null"); } else { sb.append(o.toString()); } } System.out.print(sb.toString()); }
  static public void println() { System.out.println(); }
  static public void println(byte what) { System.out.println(what); System.out.flush(); }
  static public void println(boolean what) { System.out.println(what); System.out.flush(); }
  static public void println(char what) { System.out.println(what); System.out.flush(); }
  static public void println(int what) { System.out.println(what); System.out.flush(); }
  static public void println(long what) { System.out.println(what); System.out.flush(); }
  static public void println(float what) { System.out.println(what); System.out.flush(); }
  static public void println(double what) { System.out.println(what); System.out.flush(); }
  static public void println(String what) { System.out.println(what); System.out.flush(); }
  static public void println(Object... variables) { print(variables); println(); }
  static public void println(Object what) { if (what == null) { System.out.println("null"); } else if (what.getClass().isArray()) { printArray(what); } else { System.out.println(what.toString()); System.out.flush(); } }
  static public void printArray(Object what) { if (what == null) { System.out.println("null"); } else { String name = what.getClass().getName(); if (name.charAt(0) == '[') { switch (name.charAt(1)) { case '[': System.out.println(what); break; case 'L': Object poo[] = (Object[]) what; for (int i = 0; i < poo.length; i++) { if (poo[i] instanceof String) { System.out.println("[" + i + "] \"" + poo[i] + "\""); } else { System.out.println("[" + i + "] " + poo[i]); } } break; case 'Z': boolean zz[] = (boolean[]) what; for (int i = 0; i < zz.length; i++) { System.out.println("[" + i + "] " + zz[i]); } break; case 'B': byte bb[] = (byte[]) what; for (int i = 0; i < bb.length; i++) { System.out.println("[" + i + "] " + bb[i]); } break; case 'C': char cc[] = (char[]) what; for (int i = 0; i < cc.length; i++) { System.out.println("[" + i + "] '" + cc[i] + "'"); } break; case 'I': int ii[] = (int[]) what; for (int i = 0; i < ii.length; i++) { System.out.println("[" + i + "] " + ii[i]); } break; case 'J': long jj[] = (long[]) what; for (int i = 0; i < jj.length; i++) { System.out.println("[" + i + "] " + jj[i]); } break; case 'F': float ff[] = (float[]) what; for (int i = 0; i < ff.length; i++) { System.out.println("[" + i + "] " + ff[i]); } break; case 'D': double dd[] = (double[]) what; for (int i = 0; i < dd.length; i++) { System.out.println("[" + i + "] " + dd[i]); } break; default: System.out.println(what); } } else { System.out.println(what); } } System.out.flush(); }}


Compiler output:
Main.java:8: error: cannot find symbol
    if(X=A) x=10;
         ^
  symbol:   variable A
  location: class Main
Main.java:8: error: incompatible types: String cannot be converted to boolean
    if(X=A) x=10;
        ^
Main.java:9: error: incompatible types: char cannot be converted to String
    else if(X='B') x=11;
              ^
Main.java:9: error: incompatible types: String cannot be converted to boolean
    else if(X='B') x=11;
             ^
Main.java:10: error: incompatible types: char cannot be converted to String
    else if(X='C')  x=12;
              ^
Main.java:10: error: incompatible types: String cannot be converted to boolean
    else if(X='C')  x=12;
             ^
Main.java:11: error: incompatible types: char cannot be converted to String
    else if(X='D')  x=13;
              ^
Main.java:11: error: incompatible types: String cannot be converted to boolean
    else if(X='D')  x=13;
             ^
Main.java:12: error: incompatible types: char cannot be converted to String
    else if(X='E')  x=14;
              ^
Main.java:12: error: incompatible types: String cannot be converted to boolean
    else if(X='E')  x=14;
             ^
Main.java:13: error: incompatible types: char cannot be converted to String
    else if(X='F')  x=15;
              ^
Main.java:13: error: incompatible types: String cannot be converted to boolean
    else if(X='F')  x=15;
             ^
Main.java:14: error: incompatible types: char cannot be converted to String
    if(Y='A') y=10;
         ^
Main.java:14: error: incompatible types: String cannot be converted to boolean
    if(Y='A') y=10;
        ^
Main.java:15: error: incompatible types: char cannot be converted to String
    else if(Y='B')  y=11;
              ^
Main.java:15: error: incompatible types: String cannot be converted to boolean
    else if(Y='B')  y=11;
             ^
Main.java:16: error: incompatible types: char cannot be converted to String
    else if(Y='C')  y=12;
              ^
Main.java:16: error: incompatible types: String cannot be converted to boolean
    else if(Y='C')  y=12;
             ^
Main.java:17: error: incompatible types: char cannot be converted to String
    else if(Y='D')  y=13;
              ^
Main.java:17: error: incompatible types: String cannot be converted to boolean
    else if(Y='D')  y=13;
             ^
Main.java:18: error: incompatible types: char cannot be converted to String
    else if(Y='E')  y=14;
              ^
Main.java:18: error: incompatible types: String cannot be converted to boolean
    else if(Y='E')  y=14;
             ^
Main.java:19: error: incompatible types: char cannot be converted to String
    else if(Y='F')  y=15;
              ^
Main.java:19: error: incompatible types: String cannot be converted to boolean
    else if(Y='F')  y=15;
             ^
24 errors