tailieunhanh - Introduction to java programming: Chapter 4 - Loops

Introduction to java programming: Chapter 4 - Loop's Objectives is to use while, do-while, and for loop statements to control the repetition of statements; understand the flow of control in loop statements; use Boolean expressions to control loop statements. | Chapter 4 Loops Basic computer skills such as using Windows Internet Explorer and Microsoft Word Chapter 1 Introduction to Computers Programs and Java Chapter 2 Primitive Data Types and Operations Chapter 3 Selection Statements Chapter 4 Loops Chapter 5 Methods Chapter 6 Arrays in Chapter 19 Recursion Chapter 23 Algorithm Efficiency and Sorting Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. 0-131148952-6 Objectives To use while do-while and for loop statements to control the repetition of statements . To understand the flow of control in loop statements . To use Boolean expressions to control loop statements . To write nested loops . To know the similarities and differences of three types of loops . To implement program control with break and continue . Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. 0-132148952-6 while Loop Flow Chart while loop-continuation-condition loop-body Statement s int count 0 while count 100 Welcome to Java count Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. 0-13-148952-6