1 /**
2 程序开发步骤:1、是什么 2、能干什么 3、怎么干
3 Java是一门可跨平台性的强烈行语言
4 命名规范:
5 变量名:
6 可以以 _ 字母(a-z,A-Z) $开头
7 不可以以 数字 () - = 关键字开头
8 print和println区别:print是打印,println是换行打印
9 jdk和jre的区别:jdk是开发工具包,jre是运行环境 jdk包含jre,jre包含jvm
jdk环境变量安装步骤:
1、右击我的电脑,打开属性,点高级系统变量,点高级,点环境变量,在系统环境里面新建变量名JAVA_HOME,值为jdk的路径
2、在系统变量里面找到Path,在里面配置%JAVA_HOME%\bin和%JAVA_HOME%\jre\bin
3、在系统变量里面新建变量名CLASS_PATH,值为.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
//单行注释 /**/多行注释 /***/文档注释
10 */
11 public class Demo1{
12 public static void main(String[] args){
13 System.out.print("HelloWorld");
14 }
15 }
16
17 public class Demo2{
18 public static void main(String[] args){
19 System.out.print("HelloWorld");
20 }
21 }
22
23 public class Demo3{
24 public static void main(String[] args){
25 System.out.print("HelloWorld");
26 }
27 }
28
29 public class Demo4{
30 public static void main(String[] args){
31 System.out.print("HelloWorld");
32 }
33 }
34
35 public class Demo5{
36 public static void main(String[] args){
37 System.out.print("HelloWorld");
38 }
39 }
40 /*
Demo6是打印输出HelloWorld的
*/
41 public class Demo6{
42 public static void main(String[] args){
43 System.out.print("HelloWorld");
44 }
45 }
46
47 public class Demo7{
48 public static void main(String[] args){
49 System.out.print("HelloWorld");
50 }
51 }
52
53 public class Demo8{
54 public static void main(String[] args){
55 System.out.print("HelloWorld");
56 }
57 }
58
59 public class Demo9{
60 public static void main(String[] args){
61 System.out.print("HelloWorld");
62 }
63 }
64
65 public class Demo10{
66 public static void main(String[] args){
67 System.out.print("HelloWorld");
68 }
69 }