Solve Error insert “Dimensions” to complete ReferenceType in Java
We usually get this error in java when we are trying to pass primitive data type in the generic type declaration. The reason we get this error because generic always expects the wrapper classes but gets the primitive data type. Those who are unaware about primitive data types and wrapper classes. Wrapper Classes Wrapper classes are classes in java which contains primitive data types and primitive data type can be used as objects by the help of wrapper class. Wrapper
Read more