Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. package battleship;
  2. import java.lang.Math;
  3. import java.util.Scanner;
  4. import java.util.Random;
  5. public class BattleShip
  6. {
  7.  
  8.  
  9. public static void main(String[] args)
  10. {
  11. BattleShip bob = new BattleShip();
  12. bob.One();
  13. }
  14.  
  15. private void One()
  16. {
  17.  
  18. Scanner AnnieBot = new Scanner(System.in);
  19. Random Randy = new Random();
  20. System.out.println("This is a BattleShip program, tell me the size of your grid! How many Rows??");
  21. int AskyRow = AnnieBot.nextInt();
  22. System.out.println("How many Columns??");
  23. int AskyColumn = AnnieBot.nextInt();
  24. int[][] Grid = new int[AskyRow][AskyColumn];
  25. System.out.println(Randy);
  26.  
  27.  
  28. // int Yo = Math.random();
  29. // int
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement