So I'm bored at work, I've already looked through the api documentation on suns webpage, and I know this is a really stupid-simple question...
I'm just coding under the dos/edit function because that is all that is on the machine that I'm using. Obviously to declare a main there is a string array that is passed in off of the command line when you go to execute the program... what I have forgotten was how to change the string elements in the array to integers.
I've tried using the parseInt() method, but I keep getting and error saying "Cannot resolve symbol"
My code looks a little like this:
sum1 = parseInt(args[0]);
sum2 = parseInt(args[1]);
I'm sure its something totally stupid, but its been soooo long since I've done any java programming and I cant remember if... whatever... please help, thanks so much
I'm just coding under the dos/edit function because that is all that is on the machine that I'm using. Obviously to declare a main there is a string array that is passed in off of the command line when you go to execute the program... what I have forgotten was how to change the string elements in the array to integers.
I've tried using the parseInt() method, but I keep getting and error saying "Cannot resolve symbol"
My code looks a little like this:
sum1 = parseInt(args[0]);
sum2 = parseInt(args[1]);
I'm sure its something totally stupid, but its been soooo long since I've done any java programming and I cant remember if... whatever... please help, thanks so much