Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-10-2008, 07:09 PM
Member
 
Join Date: Jan 2008
Posts: 1
manupr is on a distinguished road
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

Code:
import java.util.Scanner; Complete

Last edited by manupr : 01-14-2008 at 01:33 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-15-2008, 04:59 AM
Member
 
Join Date: Nov 2007
Posts: 17
dubdubdub has a little shameless behaviour in the past
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply

« flicker | 2D array »

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +3. The time now is 09:00 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org