arrays - Parsing a WHERE clause string in java -
i using java version 1.7 have string:
string customerlist="'c1','c2','c3','c4','c5'";
i parse each customer individual strings, like
string c1, c2, c3, c4 , c5
how do this?
for example:
string customerlist="'c1','c2','c3','c4','c5'"; for( string s : customerlist.split(",") ) { system.out.println(s.replaceall("'", "")); }
Comments
Post a Comment