创建公有和主类
一套基本写法
//创建一个名为demo的public(公有)类
public class demo {
//创建一个main(主)类
public static void main(String[] args) {
//输出hello,world~
System.out.println("hello,world~");
}
}Last updated
一套基本写法
//创建一个名为demo的public(公有)类
public class demo {
//创建一个main(主)类
public static void main(String[] args) {
//输出hello,world~
System.out.println("hello,world~");
}
}Last updated