posted 7 years ago
I am new to java and am doing self study using Lawrenceville press Guide to Java. In this last exercise I am working on, the classes compile fine but I am getting a nullpointer error referencing the lines - "while (current.getNext() != null)" - and - "anObject.enqueue((String)entry);". I am having trouble getting around it. I have tried to handling the exceptions using throws, catch etc. but I am not setting the code up right or something in order to get the program to accept the input. What can I do to get the program to accept the user input? thank you.
W. Joe Smith