package y20150804;
import java.util.Scanner;
public class yukuo3 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
        Scanner scn=new Scanner(System.in);
        System.out.println("пJA");
        int a = scn.nextInt();
        System.out.println("пJB");
        int b = scn.nextInt();
        if(a>b){
        System.out.println(a+">"+b);
        }else{
        if(a<b){
        System.out.println(a+"<"+b);	
        }else{
        System.out.println(a+"="+b);
        }
       
        }
        }
	}

package y20150804;
import java.util.Scanner;
public class yukuo3 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
        Scanner scn=new Scanner(System.in);
        System.out.println("請輸入A值");
        int a = scn.nextInt();
        System.out.println("請輸入B值");
        int b = scn.nextInt();
        if(a>b){
        System.out.println(a+">"+b);
        }else{
        if(a<b){
        System.out.println(a+"<"+b);	
        }else{
        System.out.println(a+"="+b);
        }
       
        }
        }
	}

Update 20150804n1.java