/* * Main.java * * Created on July 26, 2006, 9:01 AM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ //package puzzle2; import java.io.*; import java.util.Scanner; public class Main { public Main() { } public static void main(String[] args) throws IOException { Scanner reader = new Scanner(new File("puzzle.txt")); int count[] = new int[26]; char [][] puzz = new char[15][15]; for (int rows=0; rows< 15; rows++) for (int cols=0;cols<15;cols++) { String s = reader.next(); puzz[rows][cols] = s.charAt(0); } for (int rows=0; rows< 15; rows++) { System.out.println( ""); for (int cols=0;cols<15;cols++) { System.out.print( puzz[rows][cols]); } } } }