如题,谢谢。
解决方案 »
- 有关private修饰符的一个问题!
- 怎样在jni中转换“public String myrun2(String name)”函数
- Swing组建 JTable 使用new DefalutTableModel (Vector,Vector) 出现 can't be cast to java.util.vector 这样的异常,请问为什么啊?
- 监听器的问题
- 用PB写C/S结构的信息系统5年多了,现在想转到Java写B/S结构的信息系统了,不知道该从什么开始?
- x=x+y
- 对于数据库操作的类的选择
- 简单问题:JDOM读取xml文件时不识别encoding='GBK',有什么方法可以让它支持GBK?
- 请问哪里有关于mvc的相关资料?
- win2k如何卸载ie,10分奉上!!!!
- 问个关于自省的问题
- 聊天界面写不下去了,麻烦大家帮忙下阿
笼统的说就是如果你想做某些操作 而且操作完后不需要返回任何值 那你就把方法定义成Void的
//method that return String
public String method()
{
//must return value of String type
return new String( "..." );
}//method that return int
public int method()
{
//must return value of int type
return digital;
}//if here does not need to return any value
//then you can choose "void", means do not
//need to "return"
public void method()
{
//no word "return"
}