在windows平台上显示一条信息.
import javax.swing.joptionpane; //调用method
public class hellodialog { //定义名字
public static void main(string[] args) { //开始method
joptionpane.showmessagedialog(
null,
"hello, this is a basic java program! hope you
like it" ); //显示一条信息
system.exit(0); // 结束程序
}//结束method
}//结束class
这是一个java程序最基本的结构.希望大家喜欢.
============================================
*tonycong*
闽公网安备 35060202000074号