25$Hot 30$Hot 24$Cool //4 //5 //6 ここまでは設定 InputStream fileStream = new FileInputStream("data.txt"); System.setIn(fileStream); Scanner sc = new Scanner(System.in); //1.int型の変数 temp を宣言, キーボード入力から整数値を受け取り代入 ???? = sc.nextInt(); //2.temp が 25 以上なら Hot , そうでなければ Cool と表示