1. What is a program?
The word of procedure originates from life, and the popular point is to write the things of life in a program.
and execute.
2. Why learn Java?
Java is a high-level programming language introduced by Sun Microsystems in 1995
Javase,javaee,javame with the development of mature
Javase: Developing and deploying on the desktop
Java EE: Enterprise version helps develop programs and more
Javame:java ME for on mobile devices and embedded devices
3. How should the development process proceed?
Divided into three steps to go:
1. Writing the source program 2. Compiling the source program 3. Last Run
4.Java Program Framework:
public class Helloyuntun(file name){
public static void Main (string[] args) {main entry
Writing code
}
}
construction project : File->new->java project-> Name
Gca
public class Helloyuntu {
public static void Main (string[] args) {
SYSTEM.OUT.PRINTLN ("Hello! Cloud Intelligence "); } }
This is a simple to create Java program
5. Common symbols:
\ n: line break, before and after
\ t: tab stop, alignment action, pre-and mid-
Add comment : Multi-line /*
*/
single-line //
Chapter one developing a simple Java application