你写的这个类是不是有问题呢。可以这样吗?至少也是要这样吧。
public class hello{
{System.out.println("hello world");}
}
而且你如果要运行也应该这样吧
public class hello{
public static void main(String [] args)
{System.out.println("hello world");}
}
public class hello{
{System.out.println("hello world");}
}
而且你如果要运行也应该这样吧
public class hello{
public static void main(String [] args)
{System.out.println("hello world");}
}
解决方案 »
- jtable 设置了Renderer 导致CPU严重占用 急!
- 关于程序的关闭方式.求帮助
- 请问怎么从功能上搜索需要的api
- 请问:在使用java 的 swing 组件时候,先在JLabel上加载一个图片,然后想在这个图片上显示文字,文字要居中显示,不能吧图片挡住了,这个怎么样实现?
- 求助,关于NativeJ!!!
- classcastException的问题!!
- Japplet中,我要在关闭ie窗口时不关闭其他的ie窗口,怎么办?用System.exit(0)就全关闭了!
- 请问 Swing中画梯形的方法是什么???
- 有谁能够告诉我,为什么JB9里连接sql server2000时只能连接系统自带的那些库(如pubs)
- 如何鎖定Jdbtable中的某几個列??
- 如何把下载的jar文件加入jb中
- 为什么这么简单的问题我就调不出来,我快郁闷疯了
能显示出来路径吗?
public static void main(String [] args){
System.out.println("hello world");
}
}
应该放到一个函数体内.