/*----------------------------------------------- if文その1 (単純if型)  ------------------------------------------------*/ import java.util.*; public class If01 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int a,b; System.out.print("aはいくつ-->"); a=sc.nextInt(); System.out.print("bはいくつ-->"); b=sc.nextInt(); if ( a > b ) System.out.print("aが大きいです\n"); System.out.print("\nプログラム終了します\n"); } }