import java.util.Scanner;public class whichisgreater{public static void main (String [] args){Scanner input = new Scanner(Sytem.in);int a=input.nextInt();int b=input.nextInt();if (a>b)System.out.println("1");else System.out.println("0");}}
Standard input is empty
import java.util.Scanner; public class whichisgreater {public static void main (String [] args) {Scanner input = new Scanner(Sytem.in); int a=input.nextInt(); int b=input.nextInt(); if (a>b) System.out.println("1"); else System.out.println("0"); }}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!