Java first time on-machine impressions

Source: Internet
Author: User

First time on the computer class, give me the first impression is very chaotic, people like a born baby just do not understand anything. The first time on the machine of tension and ignorance is most of our time in the inquiry and exploration, so, and not very good to learn the Java program editing and running. Of course, most of the time we are in the dorm to do their own procedures, but most of the time will not take too long to play the program. This experiment is the second chapter of the knowledge of the understanding and use, in the process of writing industry I found that many of the books on the knowledge point a little change can be written in the program. For example, the program of Experiment one is about co-compiling, just typing the code in the book, Typing System.out.println () in the place where the code is written, and entering the contents in parentheses is done.

Experiment two is the output of the Greek alphabet, basically like the form of experimental one, just to learn the essence of data conversion, that is, when the low-level variable into a high-level variable, belong to the automatic upgrade only need to directly assign value. The conversion type is displayed when the high level is converted to a low level. Experiment three is to input data from the keyboard operation, need to import the statement imported Java.util.Scanner, and then use the Scanner class to create an object. Scanner reader=new Scanner (system.in); For example code one from the keyboard to amount assignment, Amount=reader.nextint (); Next is the type of the variable, with the first letter capitalized.

Basically the second chapter of the experimental content is these, need to grasp the things are not many, but I think is very basic, to integrate things, can not forget.

Java first time on-machine impressions

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.