Matt M
0
Q:

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);
0

New to Communities?

Join the community