Search:

Type: Posts; User: MsNovice

Search: Search took 0.11 seconds.

  1. Replies
    12
    Views
    1,062

    [SOLVED] Re: The book I'm studying is wrong!

    THAT WAS IT!!!!! Thanks so much for the debugging lesson and finding the error!!!!>:D<
  2. Replies
    12
    Views
    1,062

    [SOLVED] Re: The book I'm studying is wrong!

    The following is the output when I run the code with messages within loops to output:

    In !stop while loop
    Sleeping in GREEN
    Before changeColor

    It hanges in or trying to go into changedColor....
  3. Replies
    12
    Views
    1,062

    [SOLVED] Re: The book I'm studying is wrong!

    Thanks. I assumed it was hanging on the 1st loop. I'll put print statements in all loops and get back to you.
  4. Replies
    12
    Views
    1,062

    [SOLVED] Re: The book I'm studying is wrong!

    Code hangs almost immediately and doesn't even complete it's first loop see main class. Java hangs as if it's waiting form something and cpu remains high. I have to do a ctrl+alt+delete in order to...
  5. Replies
    12
    Views
    1,062

    [SOLVED] Re: The book I'm studying is wrong!

    Sorry - first time posting. Thanks





    public enum TrafficLightColor {
    RED,
    GREEN,
    YELLOW;
  6. Replies
    12
    Views
    1,062

    [SOLVED] Re: The book I'm studying is wrong!

    The output is "GREEN". Then it hangs. There is no error message. The output should be GREEN, YELLOW, RED (3 times).
  7. Replies
    12
    Views
    1,062

    [SOLVED] The book I'm studying is wrong!

    Hello,

    I'm learning java on my own and the example in the book to demonstrate threads and synchronization is not working. I'm not able to figure out why the sample will not run. Any ideas?

    ...
Results 1 to 7 of 7