Hello,
I need a way to check an argument that is passed on the command line to my application to make sure that it is a positive number. For example if I ran "application abc 3"
my code should check each of the arguments in this case "abc" and "3" and it should alert the user that argument "abc" is not a number (in other words I can't use Integer.parseInt) to extract a number. Any suggestions on how I could do this would be appreciated!
Thanks
Mike
I need a way to check an argument that is passed on the command line to my application to make sure that it is a positive number. For example if I ran "application abc 3"
my code should check each of the arguments in this case "abc" and "3" and it should alert the user that argument "abc" is not a number (in other words I can't use Integer.parseInt) to extract a number. Any suggestions on how I could do this would be appreciated!
Thanks
Mike