Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    3,295

    Re: Implementing the switch statement

    What happened when you used an int value there instead a String?
  2. Replies
    10
    Views
    3,295

    Re: Implementing the switch statement

    Make the switch variable an int. All the case statements are int values. Get rid of the x variable.
  3. Replies
    10
    Views
    3,295

    Re: Implementing the switch statement

    Write a small program and try it to see what happens.
  4. Replies
    10
    Views
    3,295

    Re: Implementing the switch statement

    Look at what order the song lines are in as new lines are added:
    1
    then
    2
    1
    then
    3
    2
    1
  5. Replies
    10
    Views
    3,295

    Re: Implementing the switch statement

    Have you looked at the tutorial:
    The switch Statement (The Java™ Tutorials > Learning the Java Language > Language Basics)
Results 1 to 5 of 5