View difference between Paste ID: 2PXcCYNz and hAud2yPe
SHOW: | | - or go back to the newest paste.
1
import java.util.*;
2
3
public class q4
4
{
5
	public static void main (String[] args)
6
	{
7
		Scanner s = new Scanner(System.in);
8
		
9
		
10-
		int counter = s.nextInt();
10+
		String[][] grid = new String[4][4];
11-
		String[][] con4 = new String[4][4];
11+
12-
		for (int a = 0; a <= counter; a++)
12+
		int counter = Integer.parseInt(s.next());
13
		
14-
			for(int i = 0; i <= 4; i++)
14+
		for (int i = 1; i <=counter; i++)
15
		{
16-
				for(int j = 0; j <= 4; j++)
16+
			for (int j = 0; j < grid.length; j++) 
17
			{
18-
					String value = s.next();
18+
				for (int k = 0; k < grid[0].length; k++)
19-
					con4[i][j] = value;
19+
20
					grid[j][k] = s.next();
21
				}
22-
		}
22+
23
			
24
			//Working on the actual checking process
25
			/*for (int j = 0; j < grid.length; j++) 
26
			{
27
				for (int k = 0; k < grid[0].length; k++)
28
				{
29
					grid[i][j] = s.next();
30
				}
31
			}*/
32
		}	
33
	}
34
}