- import java.util.*;
- class JPD02 {
- static Scanner keyboard = new Scanner(System.in);
- public static void main(String[] args) {
- test();
- test();
- }
-
- public static void test() {
- System.out.println("Input:");
- int i = keyboard.nextInt();
- int h = keyboard.nextInt();
- if(i>h)
- {
- System.out.printf("%d is lager than %d\n",i,h);
- }
- else if(i<h)
- {
- System.out.printf("%d is lager than %d\n",h,i);
- }
- }
-
- }
複製代碼 |