随笔分类 -  Java方法

摘要:1 package com.pingfan.method; 2 3 public class Demo3 { 4 public static void main(String[] args) { 5 System.out.println(f(5)); 6 } 7 public static int 阅读全文
posted @ 2021-03-26 22:01 HeartlessHero 阅读(24) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-25 22:03 HeartlessHero 阅读(13) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-25 21:55 HeartlessHero 阅读(13) 评论(0) 推荐(0)
摘要:11行and29行处为方法的重载 阅读全文
posted @ 2021-03-25 21:13 HeartlessHero 阅读(17) 评论(0) 推荐(0)
摘要:1 package com.pingfan.method; 2 3 public class Demo2 { 4 public static void main(String[] args) { 5 int max = max(10,20); 6 System.out.println(max); 7 阅读全文
posted @ 2021-03-25 20:57 HeartlessHero 阅读(40) 评论(0) 推荐(0)
摘要:1 package com.pingfan.method; 2 3 public class Demo1 { 4 //main方法 5 public static void main(String[] args) { 6 //int sum = add(1,2); 7 // System.out.p 阅读全文
posted @ 2021-03-23 17:26 HeartlessHero 阅读(50) 评论(0) 推荐(0)