当前位置: 技术问答>java相关
这么简单的程序为什么老是编译不通过?
来源: 互联网 发布时间:2015-04-02
本文导语: import javax.swing.*; public class welcome { public static void main(String[]grav) { javax.swing.JOptionpane.showMessageDialog( null, "Welcome to be wonderful word of java!", "Welcome,new programmer", javax.swing.JOptionpane.PLAIN_MESSAG...
import javax.swing.*;
public class welcome
{
public static void main(String[]grav)
{
javax.swing.JOptionpane.showMessageDialog(
null,
"Welcome to be wonderful word of java!",
"Welcome,new programmer",
javax.swing.JOptionpane.PLAIN_MESSAGE);
System.exit(0);
}
}
public class welcome
{
public static void main(String[]grav)
{
javax.swing.JOptionpane.showMessageDialog(
null,
"Welcome to be wonderful word of java!",
"Welcome,new programmer",
javax.swing.JOptionpane.PLAIN_MESSAGE);
System.exit(0);
}
}
|
你这个程序中的JOptionpane必须写成JOptionPane,要注意大小写。该给分了吧