Issue
I use a library method which returns a java.util.HashMap$Node
object.
I have tried to cast it to Map
, HashMap
, or Iterator
but they have all failed.
To what data type I can cast an object of type java.util.HashMap$Node
?
Solution
HashMap.Node
implements Map.Entry
, so you can cast to that.
Answered By - kewne
Answer Checked By - Mildred Charles (JavaFixing Admin)