Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    13
    Views
    1,513

    Re: Switch Case Problem help

    Glad you got it.
  2. Replies
    13
    Views
    1,513

    Re: Switch Case Problem help

    Define a String at the beginning of getPosition()
    In each case statement replace System.out.print with an assignment statement that sets the String to the value for the char.
    At the end of the...
  3. Replies
    13
    Views
    1,513

    Re: Switch Case Problem help

    Use the case statements in getPosition to set a String for the char passed to it. Have getPosition return the String.
  4. Replies
    13
    Views
    1,513

    Re: Switch Case Problem help

    Why do you want to have the method return its argument?
    Why not have it convert its code letter into a String and return that String that you can print out where you want to see the String instead...
  5. Replies
    13
    Views
    1,513

    Re: Switch Case Problem help

    Did you read the end of post #2?
    You should call that method to get the String you want.
  6. Replies
    13
    Views
    1,513

    Re: Switch Case Problem help

    I don't see what the difference is between the "should look like" and the current output?
  7. Replies
    13
    Views
    1,513

    Re: Switch Case Problem help

    What does the program output look like now?

    Why does the getPosition() method return its argument instead of a String?
Results 1 to 7 of 7