Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1.  
  2. public class ccc11j4 {
  3.  
  4. public static void main(String[] args) {
  5. // TODO Auto-generated method stub
  6.  
  7. // 200 left 0 200 right
  8. // 200 down
  9. boolean[][] grid = new boolean[201][401];
  10. //boolean array value default to false
  11. grid[1][200] = true;
  12. grid[2][200] = true;
  13. grid[3][200] = true;
  14. grid[3][201] = true;
  15. grid[3][202] = true;
  16. grid[3][203] = true;
  17. grid[4][203] = true;
  18. grid[5][203] = true;
  19. grid[5][204] = true;
  20. grid[5][205] = true;
  21. grid[4][205] = true;
  22. grid[3][205] = true;
  23. grid[3][206] = true;
  24. grid[3][207] = true;
  25. grid[4][207] = true;
  26. grid[5][207] = true;
  27. grid[6][207] = true;
  28. for (int col=199; col<=207; col++) {
  29. grid[7][col] = true;
  30. }
  31. grid[5][199] = true;
  32. grid[6][199] = true;
  33.  
  34.  
  35.  
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement