05-17-2010, 09:38 AM
Ok that helps a little bit but maybe i should have worded it my question a little better. Before I ran it i changed the arguments in NetBeans to "169". So when the file tests which should test as true. Afterwards it should run . This changes or casts the value of "number" to the arguments given to the program, because the length of 169 is = 3. So then after this it should run the last line which should display the output of . Why is it not changing the value of "number" to the argument of 169. Maybe I'm missing something? Is there anything that would make my theory illogical? I like your suggestions though, much appreaciated.
Code:
if(args.length > 0){
Code:
number = parse.Interger(args[0]);
Code:
The square root of 169 is 13