Tom Warner

Greenhorn
+ Follow
since Oct 19, 2003
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 Tom Warner

I tried using a map but I cant set one set up properly. I checked the API at Sun's site but I still get errors. Can someone point me in the right direction?
18 years ago
Is there a program similar to TextPad for Linux? I like being able to compile and execute java right from the editor.
18 years ago
This is an assignment and I think it can be done any way I want but I've never used maps and my instructor suggested doing it the way I was. If maps would be easier than arrays I'll try it that way. Im also supposed to use a bubble sort after to list the words starting with the most reoccuring, would that be easy to do with a map? Thank you for your suggestions Ernest.
18 years ago
I am trying to make a simple concordancer to count words in a text file. Its supposed to keep track of how many times each word is used and output it the results to a textArea. For example:
Word Count
---- -----
The 7
and 34
So far Ive gotten it to break apart the text file into words but im having difficulty putting the words into an array and checking if the word has already been used before. Any suggestions would be very helpful.
18 years ago
I decided to get rid of the frames and used JOptionPane's instead. I also took Brian's advice and used methods. Im still having trouble making it pause so the user can pick how many sticks after each turn. Should I get rid of the three buttons and use a TextField instead? Thanks for your help.
18 years ago
Thanks a lot for your ideas. I will try them out and hopefull get it working correctly.
18 years ago
Hi everyone,
I'm new to Java and have to make an applet for the game of Nim. Players take turns taking sticks(1, 2, or 3) and the player whose turn it is when only one stick remains loses. I've been trying everything but cant get it to run properly. I have to frames, one so the user can pick how many sticks to play with and the other to determine whether the user or the computer goes first. I cant get it to pause after the computer's turn so the user can pick how many sticks to take away. Any help would be greatly appreciated.
Heres the code so far:
18 years ago