当前位置:网站首页>Hello World generation

Hello World generation

2022-07-01 03:06:00 Aiwoniulucky

1. Create a new folder , Store code

2. Create a new one java file

. File suffix .java

.Hello.java

.[ Be careful ] The system may not display the file suffix , You have to open it manually

3. Write code

public class Hello{
    
	public static void main(String[] args){
    
		System.out.print("Hello,World!");
	}
}	

4. compile javac java file , Will generate a class file
5. function class file ,java class file
 Insert picture description here

What might happen

1. There should be no problem with the case of each word ,java Sensitive to case
2. Try to use English
3. The file name and class name must be consistent , And capitalize the first letter
4. Chinese symbols cannot appear

原网站

版权声明
本文为[Aiwoniulucky]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202160341572771.html