Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java threads and synchronization
#4
Not sure how to help you. You need to give more information. If this is your real code, I suggest fixing some of the errors in it too.

Code:
        while((!player1.hasWon) && (!player2.hasWon));

is pretty much a logic error.
Reply


Messages In This Thread
Java threads and synchronization - by Jedward - 2014-02-20, 08:49 PM
Java threads and synchronization - by Locked - 2014-02-20, 09:05 PM
Java threads and synchronization - by Jedward - 2014-02-20, 09:09 PM
Java threads and synchronization - by Locked - 2014-02-20, 09:17 PM
Java threads and synchronization - by Jedward - 2014-02-20, 09:45 PM
Java threads and synchronization - by Locked - 2014-02-20, 09:59 PM
Java threads and synchronization - by Jedward - 2014-02-20, 10:08 PM
Java threads and synchronization - by Locked - 2014-02-20, 10:09 PM
Java threads and synchronization - by happylight - 2014-02-25, 07:07 PM
Java threads and synchronization - by Jedward - 2014-02-27, 08:06 PM
Java threads and synchronization - by happylight - 2014-02-28, 10:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)