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. 




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner
comments powered by Disqus