|
args[0] is null. if running from the command line are you passing in a value for arg[0] which gets assigned to x. if running from within an ide, such as eclipse, open up the run menu and pass a value to the program. if you can't do that, comment out int x = Integer.parseInt(args[0]) and change it to x = 3 (or some value).
|