摘要: 阅读全文
posted @ 2018-06-26 17:41 HlRock 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1.有参数有返回值 public class text_1 { 1)创建add方法 public int add(int i, int j) { int res = i + j; return res; } 2)方法的调用 public static void main(String[] args) 阅读全文
posted @ 2017-01-09 15:22 HlRock 阅读(919) 评论(0) 推荐(0) 编辑