Sister school to teach Java (sixteen): while loop Detailed

Hello everyone, I am silent king, and a height, like Wong Ka Kui, Yan and Andy Lau as the value of the programmer. This article to talk about "while loop" in the form of I and Sanmei dialogue.

Sister school to teach Java, have never seen such an interesting title, right? "Language does not startle," Yes, the title of this article is so cool, I can not accept students do not read the points come in the so-called curiosity killed the cat; able to accept students I can only say you earn you not only feel the thinking in the process of reading pleasure, really can learn to knowledge. Here me to explain the background of the story right.

I have a nice flower sister (pictured above), what she called what? I think the intelligent reader friends can guess: silence the king three, yes, three-year parties VI. Her parents are considering to learn from me, to be a eight children of Java programmers. I want to resist the beginning, because programmers it is easy to hair loss industry. But family life can not do anything ah, its resistance, it is better to do more positive things to write interesting articles to teach my sister how to master Java as a programming language faster. After all, the programmer so good on high-paying (all take life for the ah).

(Foreshadowing the end, the beginning of the text)

"Brother, what we learned today is that 'while loop', right?"

"Yes, Sanmei. Previous We compared the three major loop, and highlighted the for loop, while loop is characterized know the number of cycles is not fixed."

Look at the format of the while loop:

while(条件)

Guess you like

Origin blog.csdn.net/qing_gee/article/details/104861877