Java Generics
Generics This is based on Toby Lee’s LiveCoding tv. https://www.youtube.com/watch?v=PQ58n0hk7DI static <T> void method1(List<T> list) { } static void unboundTypeWildCard(List<?> list) { // only allow add null list.add(null); // allow list's feature list.size(); list.clear(); Iterator<?> it = list.iterator(); } when we use generic methods with T, then we have intention to use type T, at below case, we just need to use List’s methods, so, ? is more suitable than T static <T> boolean isEmptyT(List<T>...