Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ccc11j4 {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- // 200 left 0 200 right
- // 200 down
- boolean[][] grid = new boolean[201][401];
- //boolean array value default to false
- grid[1][200] = true;
- grid[2][200] = true;
- grid[3][200] = true;
- grid[3][201] = true;
- grid[3][202] = true;
- grid[3][203] = true;
- grid[4][203] = true;
- grid[5][203] = true;
- grid[5][204] = true;
- grid[5][205] = true;
- grid[4][205] = true;
- grid[3][205] = true;
- grid[3][206] = true;
- grid[3][207] = true;
- grid[4][207] = true;
- grid[5][207] = true;
- grid[6][207] = true;
- for (int col=199; col<=207; col++) {
- grid[7][col] = true;
- }
- grid[5][199] = true;
- grid[6][199] = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement