That is not possible. You need to parse the string somehow.
That said, I have no idea how to parse "apple"
as a map. A string such as "favorite -> apple"
would be more understandable.
5
solved Type casting a string variable to a map in Java
That is not possible. You need to parse the string somehow.
That said, I have no idea how to parse "apple"
as a map. A string such as "favorite -> apple"
would be more understandable.
5
solved Type casting a string variable to a map in Java