If you are having a problem getting your code to compile correctly with online gdb, you should use the Scanner class instead of the JOptionPane class. Although a little different, it is easier than the dialog boxes and you don't have to parse the Strings to ints or doubles. Below is a simple program that shows you how to use the Scanner class to input data to your program. I will also include a word doc file attachment below the scribd doc. If you are still having problems when using the scanner class, email me.
Comments are closed.
|
Archives
May 2020
Categories |