Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package battleship;
- import java.lang.Math;
- import java.util.Scanner;
- import java.util.Random;
- public class BattleShip
- {
- public static void main(String[] args)
- {
- BattleShip bob = new BattleShip();
- bob.One();
- }
- private void One()
- {
- Scanner AnnieBot = new Scanner(System.in);
- Random Randy = new Random();
- System.out.println("This is a BattleShip program, tell me the size of your grid! How many Rows??");
- int AskyRow = AnnieBot.nextInt();
- System.out.println("How many Columns??");
- int AskyColumn = AnnieBot.nextInt();
- int[][] Grid = new int[AskyRow][AskyColumn];
- System.out.println(Randy);
- // int Yo = Math.random();
- // int
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement