craig long

Greenhorn
+ Follow
since Jan 19, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by craig long

Makes sense now. Got it fixed. Thanks for pointing it out. Sometimes while trying something new I look at all the lines of code and simply can't see what it needs.
13 years ago
when compiled the following program returns "Cannot find symbol method SetPrev(LinkedList.Node)" line 133 and Cannot symbol method getPrev()" line 186. Everything seems to be in place. Please Help.

13 years ago
Sorry, I submitted the wrong code last time. Why won't this print "objects are equal" or "objects are unequal properly?" It always prints the second println regardless of whether spot1 and spot2 are the same or not.



Thanks for any help.
14 years ago
I recently completed this program assignment for my beginning java class and it works well. I passed the assignment all right but was wondering if there is anything I can do to cleanup the code? Some of it seems wordy, particularly the comparisons for a winner at the bottom lines 146 - 158. thanks

14 years ago
Thank you. I am not sure why I did that. Followng too close to examples in the book I guess. I removed the line and now it works great. Thank you again.
14 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.
14 years ago