Since the first program that the teacher demonstrated in the training class was edited with Notepad and the DOS command line output, I learned a few simple DOS command line codes:
-dir (directory): List files and folders in the current directory
-CD (change directory): Enter the specified directory
-MD (make directory): Creating a Directory
-rd (remove directory): Delete directory
-CD. : Returns to the top level directory
-cd\: Return to the root directory
-exit: Exit DOS command line
After editing the source program code with Notepad, run cmd to open the DOS command line and enter the Javac file name. Java (Create. class file) ﹣ input Java class name ﹣ output result
After installing the JDK, configure the environment variables: My Computer--Properties--Advanced system settings--environment variables--Copy Install Java installation directory under the Bin directory path, add to the PATH variable value, note the interval.
Once configured, run Javac on the DOS command line to verify that the configuration is successful
In the Java Basic Grammar learning process, here is a summary of my point:
keywords : Some words that have special meaning to the compiler, cannot be used as identifiers, such as static, if, case, etc., in Java, there are three reserved words: true, false, NULL, although not a keyword, but also cannot do identifiers.
identifiers : The words we choose in Java code, which can be made up of numbers, letters, underscores, ﹩, cannot start with numbers, are case-sensitive
Learn Java's second blog post