I have a String variable containing numbers separated by coma in the below format
String pincodes = "[567686, 676776, 787787, 973923, 983923]" and so on.
Now, I would like to convert the string to List of Integers. It can be easily done using stream java but I'm trying to do this using Gson().
Can anyone help me here in doing this?