//: initialization/DynamicArray.java
package initialization; /* Added by Eclipse.py */
// 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
*///:~
两个main()入口, 从public类中的入口进行程序。
原文:http://www.cnblogs.com/heiming/p/7273689.html