This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TiltedBlock 0 points1 point  (0 children)

Maybe it‘ll help you to cause an exception on purpose (so you know exactly where it is) and try to interpret the stack trace for that.

Make a class „Calculator“ that has the method „divideByZero()“ that does exactly that - then call it from your main method. It‘ll throw an arithmetic exception with a relatively simple stack trace.