为我讲解一下这段JAVA源代码

来源:百度知道 编辑:UC知道 时间:2024/05/17 06:12:07
小弟刚开始学JAVA编程,希望高手帮我讲解一下这段Hellowworld源代码,每一段代码都代表什么意思
/**
类hellowworld的功能是在标准输出
打印一行输出“hellowworld!”
*/
class hellowodrld(
public static void main(string<>args)
system.out.println("helloworld");
)
)

class hellowodrld(//声明一个名hellowodrld的类,不过这里写的不准确,
//类的开头字母最好大写
public static void main(string<>args)//这是main()方法,应用程序必须
//要有的
system.out.println("helloworld");//打印输出
)
)

这就是传说中的hello java程序啊,

先给你指点错吧。

class hellowodrld(
public static void main(string[] args)//这里不是用的书名号<>,而是[] 是个中括号 [ ]
system.out.println("helloworld");
)
)
然后详细解释听楼上的。

声明
套用方法
输出