[Solved] Can HashMap contain custom class for key/value?
In hashmap, yes you can include custom types as Key/Value pair. but that should not be object , it must of clearly a type . means a class you can mention which becomes type for custom types. example , you can define String type variable as String s = “abc”; now if we try to … Read more