OnJava8-Examples/housekeeping/DynamicArray.java

19 lines
388 B
Java
Raw Normal View History

2015-06-15 17:47:35 -07:00
//: housekeeping/DynamicArray.java
// <20>2015 MindView LLC: see Copyright.txt
// Array initialization.
public class DynamicArray {
public static void main(String[] args) {
Other.main(new String[]{ "fiddle", "de", "dum" });
}
}
class Other {
public static void main(String[] args) {
for(String s : args)
System.out.print(s + " ");
}
} /* Output:
fiddle de dum
*///:~