将学习变成乐趣,一直在路上
每天1990

导航

 

2018年2月27日

摘要: JDK1.5以上支持 一、定义方法 有时方法的参数个数不固定,可以使用...来省略个数,使用时直接遍历即可,例如下面的方法 public class hi { public void print(String ...args){ String str=""; for (String t : args 阅读全文
posted @ 2018-02-27 20:52 每天1990 阅读(1037) 评论(0) 推荐(0) 编辑