A brief talk on Java learning--Suggestions for Java beginners __java

Source: Internet
Author: User

Learning programs are generally started in a language. The Java language is used as an introduction to programs in universities and vocational training institutions because the Java syntax is very rigorous. It is said that 1 million monkeys give them 1 million keyboards, one of them will write Java program, the other is written in Perl program. Then we will officially start the Java tour ...
Actually understand Java content is very simple, is a sentence: Java programming. As long as we take this sentence apart to understand, we can quickly understand mastery.
Java is the 1991 Sun company James Gosling and other people began to develop the name of Oak computer language, 1994 renamed to Java. So what is computer language again. We communicate with people and we must speak Putonghua to understand each other. Then the person communicates with the computer, must speak the computer to understand the language, this is the computer language.
So what is a program? A program is a collection of command sequences written in a computer language to achieve a specific goal or solve a specific problem. A series of statements and directives that operate for the intended purpose. In layman's terms, suppose you go to ATM to withdraw money, you must do so several steps: ① card. ② Enter the password. ③ enter how much money to take. ④ take the money. ⑤ back card. In these five steps, each step cannot be reversed. This is called the procedure. We often say that programming is the most important logical thinking ability, in fact, logical thinking is that you can do things according to the common sense of the card, as long as do things organized, writing program is actually to move things in life to the computer to carry out just, and not hearsay that difficult.
Finally, talk about design. The word "design" sounds like a high-end atmospheric grade. We generally think of the design are advertising design, interior design and other designers. In fact, we programmers are "designers", but our design refers to the process of writing code. In fact, as long as the grasp of the idea of writing code is no problem. The idea of writing Java code is basically divided into the following four steps:
1-clear demand. What I'm going to do.
2-Analysis of ideas. What am I going to do? 1, 2, 3 ...
3-Determine the steps. Each part of the idea used which statements "select structure, circular structure, etc.".
4-code implementation. Use the specific Java language code to reflect the idea.
These four steps are the same as when we were kids playing with building blocks and jigsaw puzzles. First you want to build a kind of thing, such as building a robot. This is the first step to clear demand. Then the second step is to consider what to build first and then a general idea of what to build. For example, the first good legs and torso, and then do the arm, and finally do the head and other ideas, this is the analysis of ideas. The third step is to determine what kind of building block puzzle that part needs. For example, the legs are made of long, rounded heads, and so on, which is the definite step. Finally, according to their own design ideas to heap the building blocks well. Finally, the completion of a complete robot, the program is finished, this is the code implementation. So as long as the spirit of these four steps to write Java programs, to simplify, all the procedures can be easily handled.

Related Article

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.