I\'m having this error:
Type mismatch: cannot convert from element type Object to String
This is the code in error:
I think you're casting is wrong..
What is u.getAllPermissions().get(k); should return? List of something? if it does so you need to add type of the generic list
List perms = (List)u.getAllPermissions().get(k);
If that doesn't work you can also try to do
for (Object o : perms) {
String s = o.toString();
.....
}
Hope that helps.. If not answer my question and it will be easier to help