java.lang.ClassCastException cannot be cast to java.util.Map$Entry [duplicate]
I have this problem I can't solve: I'm getting some data from a Firebase database. Everything works fine, except when I reach the title column. The title column is a JSON tree and it has key- value rows, so new logic must be written here. I've tried to create an entry for it and save it in a HashMap inside my ConfigItem class that I created. I receive the data just fine, but I don't know who to loop through it. When I reach the third line in the while loop, I get the error: java.lang.ClassCastException: java.util.HashMap$EntrySet cannot be cast to java.util.Map$Entry What am I missing here? pu
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.