Have you suffered an Exception in your program?Campbell Ritchie wrote: .
Paweł Baczyński wrote:
Lenise Edwards wrote:For my Java class we are using JGrasp IDE and it didn't pinpoint the exact line that is causing the exception. Also, what is a stack trace and how do I perform one?
When there is an uncaught exception, a stack trace is printed to the console. A stack trace shows you what method were called at which lines and wchich line caused the exception.
For example, running this code:
printsHere, a static method main() called a constructor (listed as <init>) at line 17, the constructor called foo() at line 5, foo() called baz() at line 8, baz() called bar() at line 11 and finally bar() threw an exception at line 14.
Also too much code for the main method. All that code should be in other methods. Use the split method of the String class to separate the input.
Please tell us which line throws this exception.
Can you post a stack trace?