POLITECHNIKA RZESZOWSKA > Wydział BektroteduiUd i Informatyki
jw»
// Java 1.5
public class VarargsExample {
public static void myPrint(String... names) { for (String n : names) |
System.out.print(n + ", ");
|
System.out.println();
public static void main(String... args) {
.; ' / myPrint();
myPrint("John"); myPrint("John", "Ann"); myPrint("John", "Ann", "Suaan"); myPrint(args);
MV* WtUąśl
Owfięfit 9 JOtiim PROKOP
St/St.