Common Ancestor to Java Array and List
- by Phuong Nguyen de ManCity fan
In .NET, both array and list have Enumerable as ancestor, so a method that accept Enumerable as an argument can receive both array and list as its argument.
I wonder if there is a similar thing in Java?