OnJava8-Examples/housekeeping/DynamicArray.java
2015-12-15 11:47:04 -08:00

22 lines
522 B
Java

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