Textbook Notes (373,120)
CA (164,549)
Ryerson (11,399)
ITM (857)
ITM 200 (25)
Chapter 6

Chapter 6

5 Pages
92 Views

Department
Information Technology Management
Course Code
ITM 200
Professor
Vikraman Baskaran

This preview shows pages 1 and half of page 2. Sign up to view the full 5 pages of the document.
Description
Chapter 6 Repetition using loops 6.1 A problem To write a method to output the statement I must practice my programming 100 times o Pseudocode Set a counter to 1 While the counter is <= 100 Print the important info Add 1 to the counter In Java, it would look like o Public static void lines (Strings [] args) { int counter; counter = 1; while (count <= 10) { System.out.println(I must practice my programming); counter = counter + 1; } } The while loop statement the details Syntax of the Java while loop statement is as follows o while () While is a Java reserved word, which tells the compiler that this is a while loop statement () is a Boolean expression, it must be enclosed in parentheses is any Java statement, known as body of the loop www.notesolution.com
More Less
Unlock Document
Subscribers Only

Only pages 1 and half of page 2 are available for preview. Some parts have been intentionally blurred.

Unlock Document
Subscribers Only
You're Reading a Preview

Unlock to view full version

Unlock Document
Subscribers Only

Log In


OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit