Thank you, pbrockway2, for the additional instruction. I'm really enjoying learning the language and the lingo of the programming world. Thanks for your patience and your help! :cool:
Type: Posts; User: wltrallen2
Thank you, pbrockway2, for the additional instruction. I'm really enjoying learning the language and the lingo of the programming world. Thanks for your patience and your help! :cool:
Okay... so I finally answered my own question. Just for reference, I had forgotten to instantiate the ArrayList in my ivars at the bottom of the program. Instead of...
ArrayList<String> friends =...
Okay, so actually your comments were really helpful once I started digging. The original problem was the line:
friends.clear();
because there weren't any entries in the ArrayList<String>...
Still learning terminology... Is this the stack trace to which you are referring:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at...
Hi. I'm learning java through Standford's Open Courseware, and while it's a phenomenal program, and I've been able to work each of the assignments on my own thus far without the teacher contact that...