Results 1 to 3 of 3
  1. #1
    Shesaid is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default Help w/2 things - Character.toLowerCase & do while loop with Switch Statement

    Don't worry. I got it! :)
    Last edited by Shesaid; 03-30-2011 at 10:28 AM.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,755
    Rep Power
    7

    Default

    Java Code:
    switch c {
        case 'A':
        case 'a':
            do stuff
            break;
        case 'B'
        case'b'
            etc
    It seems to break my Class as it hangs
    What does that mean? How does it hang? Under what conditions does it hang? where does it hang? Probably in the code you omitted. Can help with code we cannot see.
    A do while loop seemed most logical but I'm not sure how to structure it around my switch statement.
    Java Code:
    do {
        switch {
        
        }
    } while(....);
    What is so hard about that?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Quote Originally Posted by Shesaid View Post
    Don't worry. I got it! :)
    You don't deserve help on a forum.

    db

Similar Threads

  1. Replies: 9
    Last Post: 06-17-2012, 04:13 AM
  2. help with switch statement
    By java__beginner in forum New To Java
    Replies: 4
    Last Post: 03-19-2009, 02:22 PM
  3. Method in a Switch Statement
    By cart1443 in forum New To Java
    Replies: 6
    Last Post: 03-14-2008, 03:48 AM
  4. Switch Statement Help
    By bluegreen7hi in forum New To Java
    Replies: 6
    Last Post: 02-06-2008, 05:16 AM
  5. Help with gigantamous switch statement
    By trill in forum New To Java
    Replies: 2
    Last Post: 08-06-2007, 08:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •