package smy.Collections;

public class UnsureParams {

    public static void chi(String ... args){ //...代表参数的个数是不定的,几个都可以
        System.out.println("参数的个数是:"+args.length);   //args是一个数组
        for(String s:args)
        {
            System.out.println(s);
        }
    }
    
    public static void main(String[] args) {
        chi("黄瓜","木瓜","西瓜");
    }
}