Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes loops Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "loops" Watch "loops" New topic
Author

loops

cybel sheriden
Ranch Hand

Joined: Jan 18, 2005
Posts: 50
pag3e 234 of k&b for i=0 and j=0 ,prints hello to output and after the continue statment only i is incremented and not j ,in which case hello should be printed only 5 times.......please explain.
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Please post the code so people without the book can help you. This is in line with the fair use aspect of copyright.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Moving to beginner's forum...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: loops
 
Similar Threads
for loop with two variables ...
continue outer loop
Some problem
If Statement Problem
labeled continue statement?