当前位置: 技术问答>java相关
怎么编译不通过呢?
来源: 互联网 发布时间:2015-03-12
本文导语: import javax.swing.*; public class welcome { public static void main(String[]grav) { JOptionpane.ShowMessageDialog( null, "welcome to thebwonderful world of java!" , "welcome,new programer", JOptionpane.PLAIN_MESSAGE ); System.exit(0); } } | ...
import javax.swing.*;
public class welcome
{
public static void main(String[]grav)
{
JOptionpane.ShowMessageDialog(
null,
"welcome to thebwonderful world of java!" ,
"welcome,new programer",
JOptionpane.PLAIN_MESSAGE );
System.exit(0);
}
}
public class welcome
{
public static void main(String[]grav)
{
JOptionpane.ShowMessageDialog(
null,
"welcome to thebwonderful world of java!" ,
"welcome,new programer",
JOptionpane.PLAIN_MESSAGE );
System.exit(0);
}
}
|
public static void main(String[]grav)
改为
public static void main(String[] grav)
改为
public static void main(String[] grav)
|
更改如下
{
public static void main(String[]grav)
{
JOptionPane.showMessageDialog( //
{
public static void main(String[]grav)
{
JOptionPane.showMessageDialog( //