It's called a wildcard type for obvious reasons. We can write: void printCollection(Collection<?> c) { for (Object e : c) { System.out.println(e); } }.
確定! 回上一頁