I have a string "4,6,8
9,4"
I want to split this based on ,and
Output array should be
4
6
8
9
4
Edit :
Now i am reading string from console , when i enter a string as above in console , in the code behind i get as "4,6,8\n9,4"
. Now that i want to split using "," and "\n"
. How can i change the expression ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…