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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -