Object[] array = stringLists; List tmpList = Arrays.asList(42); array[0] = tmpList; // 語意不對,不過編譯器不會有警訊 ... 在使用泛型定義不定長度引數時,編譯器會提示開發人員,有沒有注意到heap pollution ...
openhome.cc