Java day_01 (I am freezing my hands on the cold night in the south of the code!!! )

Source: Internet
Author: User

Learn the basics of building a Java environment today.

First download the JDK from the official website, and then follow the process of the video to the environment variable configuration, so that it can be more convenient application of Java development tools, in short, can be directly input javac each time the compiler file, do not enter a large string of content.

Next Open the Java development tool, hit the simplest string of code, the code is as follows:

Class LXM
{
public static void Main (string[] args)
{
System.out.println ("Hello java,this is LXM speaking!");
}
}

File directory:

After the knock to open the command prompt, but found that the execution error!!!

So I opened the original code, found that the string s is not capitalized, after modification, the effect finally came out!!!

Summary:

Although it is a very simple code, but still have to go through a letter and a letter to knock up to know where you can go wrong, the simpler the more often the more easily overlooked by us. Hope that in the future study and life process can be more careful, try to avoid some of the low-level errors, of course, with the increase in the number of hits code, we make these low-level errors will be less, in the final analysis is the practice of four words, in the later study, I will be more diligent to practise, anyway, Or celebrate the birth of your first Java program in life!!!

Java day_01 (I am freezing my hands on the cold night in the south of the code!!! )

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.