You should not call guessNumber() more then once. Every time you call guessNumber() you get a new number.
Instead you will save the the value in an variable and use it. Like:
int number =...
Type: Posts; User: qurtan
You should not call guessNumber() more then once. Every time you call guessNumber() you get a new number.
Instead you will save the the value in an variable and use it. Like:
int number =...
It is code that is executed when you create an object.
Have your program read access in the directories? It is possible you have write permission but not read permission.
One thing you can try is to use the NetworkInterface class to get the proper InetAddress.
Try a while loop instead of a do while loop.
I have a little hard to see why you want to sync this. The only reason I see is if you always want a "bowBack" before a new "bow" is performed. If this is the case I should synchronize "bow" with an...
No, not generally. It all depends on your singleton object.
You have to terminate the while loop when NO is choosen. That can be done either with a break or an extra condition in the while statement.