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!!! )