访问控制符 [返回值类型] 方法名 (){
retrun[返回值] //void 没有返回值,可省略
}
public int test(){
int a =10;
int b=2;
retrun a+b;
}
本文共 165 字,大约阅读时间需要 1 分钟。
访问控制符 [返回值类型] 方法名 (){
retrun[返回值] //void 没有返回值,可省略
}
public int test(){
int a =10;
int b=2;
retrun a+b;
}
转载于:https://www.cnblogs.com/TangGe520/p/8901016.html