Results 1 to 2 of 2
  1. #1
    manupr is offline Member
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Default Loops (while do etc)

    Hi i am new to java and i am trying to fix a problem that i have any sort of help would be greatfully

    What the problem is with loops they confuse me a bit

    what i want is for the first or second do loop to wrap from the do to while gallery bit

    Then the second on to do it to the do loop to ecomy while part but skip past the gallery bit

    So ecomcy does up to seattype = input.next();
    so its asks you what seat you want then because he wants an ecomcy seat then skip past the gallery part then loop the ecomcy section end while (economycount <= 15);

    What i am tring to do is so you can chosen a ticket for cinema but there are onlt 15 seat 1-10 are ecomny
    seat 11-15 are gallery

    thanks any little bit of imformation on how i can solve this problem would be a help

    Java Code:
    import java.util.Scanner;
    
    Complete
    Last edited by manupr; 01-14-2008 at 01:33 PM.

  2. #2
    dubdubdub is offline Member
    Join Date
    Nov 2007
    Posts
    17
    Rep Power
    0

    Default

    hi manupr

    It seems to me that you have a very simple problem, I was confused why nobody has answered it, Then I read it now I am confused, could you re-write it please, sorry or maybe it is me

Similar Threads

  1. [SOLVED] Need help with Slope (Loops)
    By Zebra in forum New To Java
    Replies: 9
    Last Post: 04-18-2008, 04:39 AM
  2. Question about loops
    By BHCluster in forum New To Java
    Replies: 4
    Last Post: 04-16-2008, 06:40 PM
  3. [SOLVED] Need help with Loops...please!
    By Zebra in forum New To Java
    Replies: 5
    Last Post: 04-10-2008, 02:44 PM
  4. Nested loops?
    By gabriel in forum New To Java
    Replies: 4
    Last Post: 08-06-2007, 05:51 PM
  5. Help me: loops in java
    By silvia in forum New To Java
    Replies: 3
    Last Post: 07-19-2007, 07:47 PM

Posting Permissions

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