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; } }