I typed this up myself from Head First
Java. I keep getting a NullPointerException that says the following:
Exception in
thread "main" java.lang.NullPointerException
at QuizCardPlayer.go(QuizCardPlayer.java:27)
at QuizCardPlayer.main(QuizCardPlayer.java:19)
I didn't see anything blatently wrong with the code I had written, and the problem appeared to be in my first two methods, but it starts up the same way as some other programs of mine that work fine. Here is the code, cut and pasted fresh from jGrasp.
If someone could scan this over or if they know that I made some stupid mistake (I haven't done GUI in awhile, I'm still getting back into the swing of things, no pun intended) I would be immensley thankful.
[ June 04, 2008: Message edited by: Rob Prime ]