import java.util.*; enum E { A, B, C } class A { void foo(List list, Collection collection, Map map) { int a = "".length(); String b = E.A.name(); int c = E.A.ordinal(); int d = list.size() + collection.size(); int e = map.size(); int f = map.keySet().size(); int g = map.values().size(); int h = map.entrySet().size(); } void bar(List list) { char c = "a".charAt(0); byte b = new Integer(10).byteValue(); int i = new Double(10.1).intValue(); float f = new Double(10.1).floatValue(); long l = new Double(10.1).longValue(); short s = new Double(10.1).shortValue(); String removed = list.remove(10); Boolean isRemoved = list.remove("a"); } }