I habitually compile after every change I make, i had all of 5 minutes to start a project and this will not compile!!:
public class Battleship{
public static void main(String[] args){
int boardInput = parseInt(args[0]);
}
}
I get this error:
Battleship.java:19: cannot find symbol
symbol : method parseInt(java.lang.String)
location: class Battleship
int boardInput = parseInt(args[0]);
What I need is for the first command line argument to be made into an integer so I can work with it.
Assistance please :)