Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) throws IOException{
- File inputFile = new File("test.txt");
- Scanner input = new Scanner(inputFile);
- int count = 1;
- int rows = input.nextInt();
- int columns = input.nextInt();
- char[][] array;
- array = new char[rows][columns];
- input.nextLine();
- for(int i = 0; i < array.length; i++){
- for(int j = 0; j < array[0].length; j++){
- System.out.print(array[i][j]);
- }
- System.out.println();
- }input.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement