Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
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-26-2008, 11:47 PM
Member
 
Join Date: Nov 2007
Posts: 21
michcio has a little shameless behaviour in the past
while loop
how do I return to the beginning of the while loop...which command shall I use...


while(something){
.
.
.
.
return???!!! //which command to get to the top of the while loop?!
.
.
}

help please
michcio
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-27-2008, 02:40 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Michcio - please get a book on learning the Java language. Your question is a fundamental one. If you cannot for whatever reason get a book, then read the online Sun tutorials, which is safe to say is the official tutorial on the language.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-27-2008, 02:44 AM
Member
 
Join Date: Nov 2007
Posts: 21
michcio has a little shameless behaviour in the past
hum I have already a book but haven't found anything about how to return in the while loop and neither on the net and that was the reason of why I wrote here :O
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 01-27-2008, 02:47 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
I find it hard to believe your book doesn't have a section on while loops. What book are you using? Look up control and flow statements or use the index and search up the while keyword.

EDIT: your answer is in the Sun Tutorials under this section. You didn't look hard enough.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)

Last edited by CaptainMorgan : 01-27-2008 at 02:53 AM.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 01-27-2008, 02:52 AM
Member
 
Join Date: Nov 2007
Posts: 21
michcio has a little shameless behaviour in the past
Quote:
Originally Posted by CaptainMorgan View Post
I find it hard to believe your book doesn't have a section on while loops.
well, ofcource it has a section on while loops but there is nothing about how to return to the begining of a while loop...and can't you just tell me if you know it will go much faster for me..please
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 01-27-2008, 02:56 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Quote:
Originally Posted by michcio View Post
well, ofcource it has a section on while loops but there is nothing about how to return to the begining of a while loop...and can't you just tell me if you know it will go much faster for me..please
No. If you are given the answer - that is not learning. As I said previously - your question is a fundamental one. It's not that you don't know it, it's worse- you don't want to learn it, in that case you might want to pick a new hobby.

See my previous post for an updated edit.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)

Last edited by CaptainMorgan : 01-27-2008 at 02:59 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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
do...while loop eva New To Java 16 01-31-2008 08:44 AM
can you help me with this for loop? java_fun2007 New To Java 6 12-22-2007 12:20 PM
A loop that doesn't loop MichYer New To Java 2 07-30-2007 10:44 AM
While loop leebee New To Java 1 07-18-2007 05:11 PM
Loop Help HeavyD New To Java 5 07-10-2007 03:26 PM


All times are GMT +3. The time now is 01:27 PM.


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