Here are some of the lessons I summarized in the previous lesson and the code is most of the teacher's notes personally think is very good, but also a more classic content, sincere hope that these for those who want to learn some help!
I'm going to send out all the sorting code as much as I can. Also very welcome to my blog to watch the blog address: http://www.cnblogs.com/duscl/
In the daily summary also has the corresponding code!!! In the back.
First day
1: Computer Overview (Understanding) (1) computer (2) Computer hardware (3) Computer software system software: WINDOW,LINUX,MAC application software: Qq,yy, Fei Qiu (4) Software development (understanding) Software: It consists of data and instructions. (calculator) Development: It is to do the software. How to implement software development? is to use development tools and computer language to make things come (5) Language Natural language: Human communication with the computer language: human and computer communication C,c++,c#,java (6) Man-Machine Exchange graphical interface: Easy to operate DOS command: need to remember some common commands
2: Keyboard function key recognition and shortcut key (master) (1) Function key Recognition tab shift CTRL ALT WinDOS space up or down Enter (2) shortcut keys all Select Ctrl + a copy CTRL + C paste Ctrl + V cut ctrl+x Undo Ctrl + Z save Ctrl+s
3: Common DOS Commands (mastering) (1) Common following switch of the drive letter D: Enter the directory of the fallback CD to the CD javase CD Javase\day01\code directory. Cd\ Clear Screen CLS exit exit (2) other several (learn) Create directory delete directory create file Delete file display directory contents delete content Directory
4:java Language Overview (Learn) (1) The history of Java language The father of Java JDK1.4.2 JDK5 JDK7 (2) Java language features a lot of small features, focusing on two open source, cross-platform (3) Java language is cross-platform, ask is like What's the guarantee? (understanding) We are explaining through the case of translation. For different operating systems, improve the different JVM to achieve. (4) Java language platform Javase javame--android java EE
5:JDK,JRE,JVM's role and Relationship (Mastery) (1) Role JVM: The development environment of the Jre:java program that guarantees the Java language cross-platform Jdk:java (2) Relationship jdk:jre+ Tools jre:jvm+ Class Library
6:JDK download, install, uninstall (Master) (1) Download to official website. A: Can also go to Baidu search can. B: I'll give it to you. (2) Install a: The green version of the decompression can be used B: The installation version must be installed step-by-step, generally as long as the click on the next note: It is recommended that all development-related software should not be installed in Chinese or a blank directory. (3) Uninstall A: Green version directly delete folder B: Install version A: Control Panel--Add Remove program B: Through the Professional software Uninstall tool. (e.g. 360 software Manager uninstall)
7: First Program: HelloWorld case (mastering) class HelloWorld { public static void main (string[] args) { system.out.println ("HelloWorld"); } (1) program explanation: the most basic unit of the a:java program is the class, so we're going to define a class. format: Class name Example: Class HelloWorld b: When writing content in a class, enclose it in curly braces. To execute a c:java program, you must have the main method. format: public static void Main (string[] args) d: to point to those things, enclose them in curly braces. e: What are you going to do? Today we just made a simple output format: System.out.println ("HelloWorld"); Note: The contents of "" can be changed. (2) Java Program development and execution flow: a: Writing Java source program (. java) b: Build the. class file c by compiling the Javac command: Run. class files with Java commands 8: Common problems (mastering) (1) extensions are hidden How to find: Tools--Folder Options--View--Remove the check box for hidden extensions (2) I want the file name to be the same as the class name. actually not doing that is also possible. However, note: javac followed by the filename + extension java followed by the class name without the extension (3) The Java language is strictly case-sensitive, Please note that. There is the word don't write wrong. (4) See illegal characters: \65307 is definitely a Chinese problem. We write programs that require punctuation must all be in English state. (5) The pairing problem of parentheses. in general, parentheses are paired. (6) encountered could not find the main method in class HelloWorld, define the main method as must be a format problem for the main method.
9:path environment variable (master) (1) The role of the PATH environment variable ensures that the Javac command can run in any directory. The same can be configured QQ and other (2) path configuration of two scenarios: A: Scenario 1 (understanding) B: Scenario 2 Find the location of the environment variable, in the system variable inside the NEW: variable name: Java_home variable Value: D:\DEVELOP\JAVA\JDK1. 7.0_60 Modify: Variable name: Path variable Value:%java_home%\bin; previous content
10:classpath Environment Variables (understanding) (1) The role of CLASSPATH environment variables ensure that the class file can run in any directory (2) CLASSPATH environment variable configuration find the location of the environment variable, new in the system variable: variable name: clas spath Variable Value: E:\JavaSE\day01\code\HelloWorld case
The code is as follows:
class HelloWorld { publicstaticvoid main (string[] args) { System.out.println ("HelloWorld"); class helloworld{ publicstaticvoid Main (string [] args) { }
Java Basics (i)