arrays - How to do a split in java? -
i have done string.split , called first position of array reason of array result appear. code
try { string xx = ""; (int = 0; < row; i++) { (int c = 0; c < col; c++) { cell z = s.getcell(c, i); xx = xx + z.getcontents() + "\n"; } xx = xx + "\n"; } //i split here result[0] = information string result[] = xx.split(","); textview.settext(result[0]); } catch (exception e) { }
and image of output: description of output
try splitting \\\\
.
string examplestring = "a\\b\\c\\d"; //escaping "\" character string array[] = examplestring.split("\\\\");
Comments
Post a Comment