首页 > 其他分享 >方法自学

方法自学

时间:2022-09-07 19:59:14浏览次数:68  
标签:int sum playgame StudentSystem static 自学 方法 public

package StudentSystem;
//方法调用学习

public class StudentSystem {
public static void main (String[] args) {
int a;
int b;
int sum = playgame(6,5);
System.out.println(sum);

}

public static int playgame(int m, int n) {
int r = m + n;
return r;
}
}

标签:int,sum,playgame,StudentSystem,static,自学,方法,public
From: https://www.cnblogs.com/yzx-sir/p/16667055.html

相关文章