Answers for "error: constructor TypeToken in class TypeToken<T> cannot be applied to given types;"

0

error: constructor TypeToken in class TypeToken<T> cannot be applied to given types;

Type collectionType = new TypeToken<Collection<Integer>>(){}.getType();
Collection<Integer> ints2 = gson.fromJson(json, collectionType);
Posted by: Guest on July-17-2020

Code answers related to "error: constructor TypeToken in class TypeToken<T> cannot be applied to given types;"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language