当前位置: 技术问答>java相关
新手的问题!编译出错!在线等待!
来源: 互联网 发布时间:2015-05-10
本文导语: import javax.swing.*; public class welcome { public static void main(String[]grav) { JOptionpane.ShowMessagedialog(null, "welcome to te wonderful world of java!", "welcome new programmer", JOptionpane.PLAIN_MESSAGE); System.exit(0); } } 老报:cannot resolve symbol ...
import javax.swing.*;
public class welcome
{
public static void main(String[]grav)
{
JOptionpane.ShowMessagedialog(null,
"welcome to te wonderful world of java!",
"welcome new programmer",
JOptionpane.PLAIN_MESSAGE);
System.exit(0);
}
}
老报:cannot resolve symbol
symbol:variable JOptionpane
public class welcome
{
public static void main(String[]grav)
{
JOptionpane.ShowMessagedialog(null,
"welcome to te wonderful world of java!",
"welcome new programmer",
JOptionpane.PLAIN_MESSAGE);
System.exit(0);
}
}
老报:cannot resolve symbol
symbol:variable JOptionpane
|
JOptionpane
改为
JOptionPane
改为
JOptionPane
|
JOptionPane写错了,大小写问题!