OnJava8-Examples/housekeeping/DynamicArray.java
2016-12-30 17:23:13 -08:00

22 lines
503 B
Java

// housekeeping/DynamicArray.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// 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
*/