Hello all I have a string Im getting back from the database as follows:
('MCKINNEY','TX'),('ALLEN','TX'),('ANNA','TX')
I need to break it down and drop into an array
'MCKINNEY','TX'
'ALLEN','TX'
'ANNA','TX'
..normally I get multiple records and just drop the resultSet into a Vector and do "elementAt(i)" to display, but I never messed with a string like so
any suggestions?
I was thinking using replaceAll
for (String s : input.split("),(")) {
System.out.println(s.repalceAll("(", "").replaceAll(")", ""));
}
that dont work...