i'm trying split string within iteration. as example:
10||a||##||20||b||
in end need values within each delimeters, e.g. 10, a
etc. result 1,0,a
missing here? thx!
string[] rows = values.split("##"); string[] tmp; (int = 0; < rows.length; i++) { tmp = rows[i].split("||"); stquantitymanuell = tmp[0]; stlager = tmp[1]; stplatz = tmp[2]; }
change code to:
rows[i].split("\\|\\|");
Comments
Post a Comment