java - Take a String array and split with "," -


this question has answer here:

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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -