Search:

Type: Posts; User: qurtan

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    1,169

    Re: Please what is wrong with my code

    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 =...
  2. Thread: Constructor

    by qurtan
    Replies
    6
    Views
    1,718

    Re: Constructor

    It is code that is executed when you create an object.
  3. Re: solaris machine /tmp folder, File.exists() cant see the existing file.

    Have your program read access in the directories? It is possible you have write permission but not read permission.
  4. Replies
    2
    Views
    2,269

    Re: Cannot Open Socket on Specific Address/Port

    One thing you can try is to use the NetworkInterface class to get the proper InetAddress.
  5. Replies
    8
    Views
    2,346

    Re: School Assignment AHH!

    Try a while loop instead of a do while loop.
  6. Thread: Deadlock!!

    by qurtan
    Replies
    7
    Views
    1,934

    Re: Deadlock!!

    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...
  7. Replies
    1
    Views
    2,350

    Re: Singleton thread safe

    No, not generally. It all depends on your singleton object.
  8. Re: The program working fine but the "NO" button doesn't work

    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.
Results 1 to 8 of 8