Null Keys and Values in Maps
javaspecialists.eu1 ポイント投稿者 moss20 コメント
int x = foo(); // foo() returns int but we can see that in what type x is
foo(); // we don't care what foo() returns
Named variables in method calls would have to have the type so as to not hide what type a method-as-parameter returns: CoolObject cool_obj = bar(int arg1: foo()) HashMap<String, List<int>> hashmap = new HashMap<String, List<int>>();
but IntelliJ showed it to you like hashmap = new HashMap();