public class CharngArgs02 { public static void main(String[] args) { StringUtil s = new StringUtil(); String x = s.concat("hello","world","鸡勃","亚麻跌"); System.out.println(x); } } class StringUtil{ public String concat(String...str){ String x =""; for (int i =0;i<str.length;i++){ x += str[i]; x +=" "; } return x; } }
java简单输出
最新推荐文章于 2022-12-05 21:07:01 发布