62,612
社区成员
发帖
与我相关
我的任务
分享
//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"
}