Hey folks, this is my first post here, and I rate myself as a beginner so I will put my problem here.
I am writing a simple application that performs mathematical operations, but uses a system of menus and submenus (displayed with the System.out.println statement) to navigate between different types of operations and to select the operations themselves. The follow bit of code is standard for each menu:
I use the NetBeans
IDE because that is what I have been taught in, and it allows me to manage my projects. In 3.6 with 1.4.2 this piece of code worked fine, but I upgraded to NetBeans 4.0 with 1.5.0 (update 2) and this code doesn't work. It executes without compiler error, but as soon as it reaches the
try block, it seems to just throw an exception and prints the error before ending the program completely.
Where am I going wrong?
Many thanks in advance,
Andrew Humphries