public class HelloWorld {
public static void main(String[] args) {
System.out.println("hello,world!");
//我是单行注释
}
}
快捷键
public static void main(String[] args) {}
psvm
System.out.println();
sout
标识符 关键字编译器有特殊意义的固定单词,不能在程序中做其他目的使用。不能当作一般的标识符来使用。
| abstract | assert | boolean | break | byte |
|---|---|---|---|---|
| case | catch | char | class | const |
| continue | default | do | double | else |
| enum | extends | final | finally | float |
| for | goto | if | implements | import |
| instanceof | int | interface | long | native |
| new | package | private | protected | public |
| return | strictfp | short | static | super |
| switch | synchronized | this | throw | throws |
| transient | try | void | volatile | while |
为方法、变量或其他用户定义项所定义的名称
注意点:



