$***** //2 //3 //4 //5 //6 ここまでは設定 InputStream fileStream = new FileInputStream("data.txt"); System.setIn(fileStream); Scanner sc = new Scanner(System.in); //1.for文で、 * を5個横に並べて表示