Hello
I am having problems with parsing a String array so that i could format it in a way that i could convert it to an integer.
Here is piece of the code:
String names[] = something.toArray( new String[something.size()]);
String strNames= new String();
String parse = new String();
for (int x=0; x<something.size(); x++){
strNames = names[x];
parse = parse + strNames.replaceAll("\\D", "")+ System.getProperty("line.separator");
}
System.out.println(parse);
When i use System.getProperty("line.separator") ,so the next number would start as a new line, multiple blank lines get created in the process. Those blank lines are created where the stripped stuff used to be.
Can you please help me with this?
thanks