Tarou 80$Tarou:80 Hanako 95$Hanako:95 //3 //4 //5 //6 ここまでは設定 InputStream fileStream = new FileInputStream("data.txt"); System.setIn(fileStream); Scanner sc = new Scanner(System.in); Student s1 = new Student(); s1.name = sc.next(); s1.score = sc.nextInt(); System.out.println(s1.name + ":" + s1.score); //class //問題:クラス Student を宣言、 String型のname と int型のscoreをフィールドに持つ