Method - dynamic parameters


1
/ * 2 * dynamic parameters: String ... STRs . 3 * restrictions: must be placed at the end . 4 * @param NUM . 5 * @param STRs . 6 * @return . 7 * / . 8 String func1 (NUM Integer, String .. . STRs) { . 9 for (String STR: STRs) { 10 System.out.println (STR); . 11 } 12 is return "Finished" ; 13 is }

 

Guess you like

Origin www.cnblogs.com/yolanda0225/p/11878124.html