Abstract
This chapter shows how iterations structures work using flowcharts, pseudocode and Java. It includes pretest indefinite loop structures, both count and sentinel controlled while loops. The posttest indefinite do-while loop and the definite iteration for loop are also discussed. Nested loops and potential problems are examined, and complete programs both with and without objects are included.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer-Verlag London
About this chapter
Cite this chapter
Streib, J.T., Soma, T. (2014). Iteration Structures. In: Guide to Java. Undergraduate Topics in Computer Science. Springer, London. https://doi.org/10.1007/978-1-4471-6317-6_4
Download citation
DOI: https://doi.org/10.1007/978-1-4471-6317-6_4
Published:
Publisher Name: Springer, London
Print ISBN: 978-1-4471-6316-9
Online ISBN: 978-1-4471-6317-6
eBook Packages: Computer ScienceComputer Science (R0)