import java.util.Scanner;import java.io.*;public class ReadData{ public static void main(String[] args) throws Exception{ File file = new File("score.txt"); Scanner in = new Scanner(file); while(in.hasNext()){ String firstname = in.next(); String mi = in.next(); String last = in.next(); System.out.println(firstname+" "+mi+" "+last+" "); } in.close(); }}
添加回答
举报
0/150
提交
取消