java - Take a String array and split with "," -
this question has answer here:
- how split string in java 28 answers
i need splitting string array @ each ,
, make result new string array.
string [] studentname ={"thui bhu, 100, 90, 80, 100, 89, 99, 88"}
convert to:
string []studentname2={"thui bhu", "100", "90", "80", "100" "89", "99", "88"}
specify index of array element splitting going occur.
string [] studentname ={"thui bhu, 100, 90, 80, 100, 89, 99, 88"}; system.out.println(arrays.tostring(studentname[0].split(",")));
Comments
Post a Comment