I am trying to get string values
"one", " Two "," three "," four ",
but what I currently get is
" one "," two "," three , Four ",
Here's the code, I have Arrayist value different than comma, but I want to take the value separated from that comma as two separate values And not as one.
Arreelist & lt; String & gt; List = New Arrestist & lt; String & gt; (); List.add ("a"); List.add ("two"); List.add ("three, four"); String list string = ""; (For string: list) {listString + = "\" "+ s +" \ ","; } System.out.println (listString);
Is this possible? If so, how do I do this?
No comments:
Post a Comment