19th Introduction to Loops in Java statements

Source: Internet
Author: User

Everyone is good, I believe everyone is directed at the name of it, in fact, this is just my personal self-study some experience, not much advanced knowledge points, only applicable to some beginners to learn Java casually. Well, the nonsense is not much to say, the following for a moment, today I learned the new knowledge points.

Actually to say today I learned how much, actually not many, knew the Java Some circular statement, uses my own language to organize the word is:

There are many loops in Java, why there are many, because in different statements used in the Loop statement is not the same, for the simplest example, the calendar used by the loop statement and the time used by the Loop statement is not the same, as for why, left to you to understand it, Well, in fact, I learned today mainly how to use the nested relationship for the For loop.

Well, here's the question: "Where is the nested relationship for the for?" In fact, it is not difficult, like tonight we do our own 9*9 multiplication table, I believe this example is not strange to everyone, because the pencil box on the child has, but today, the teacher asked us to write a Java program for the goal is to show it in the command prompt, at first I think it should not be difficult, But really to do, only to find that some of these things a bit so I want to break the brain did not want to come out, and then a classmate of mine simply gave me a point of view, I understand the truth, well, now let you look at the source code I wrote it:


public class chen{

public static void Main (String [] args) {

Print

for (int i=1;i<10;i++) {

for (int j=1;j<10;j++) {

System.out.println ();

Continue print;

}

System.out.print ("+i+" * "+j+" = "+i*j");

}

}

}


Well, the code I have already written to you, I quickly go to verify it.

Because of the time, today's blog will be written here first, then continue to remind their daily goals and plans:

1, daily exercise fingering an hour;

2, every day to write a blog or log, used to record the daily life of every bit of drip;

3, every day class adhere to do not be late, not truancy, do not leave early phenomenon, there is a daily 15 minutes in advance into the classroom;

4. Give yourself a word of encouragement every day---------every time when you want to relax and slack in your mind, think about your goals, why do you learn this line, what is the purpose of learning this line? Why come here ...





19th Introduction to Loops in Java statements

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.