ERROR - The method of(K, V, K, V, K, V) in the type Map is not applicable for the arguments (String, String, String, String, String)

Error

The method of(K, V, K, V, K, V) in the type Map is not applicable for the arguments (String, String, String, String, String)

Error Type


Compile Time


Cause

The method of within Map class requires even number of arguments. The first argument is the key for first map element and second argument is the value for first map element and so on.