I have an ArrayList<String>
that I want to save into MySql database using restapi from my server. I create the ArrayList
from value of checked item in ListView
.
After populate the data I insert the ArrayList
into a single column in MySql
using Fast Android Networking (FAN) Library. Upon inserting I convert the ArrayList
into string using toString()
method.
The problem is the saved ArrayList
is not in the format I expected it to be. It saved in format like this:
"[jon, doe, jane, doe]"
What I want is the ArrayList is save in this format:
["jon", "doe", "jane", "doe"]
Please help me how to do it.