Hello,
I have a code with me, though I am not sure it will work with your program that is I have no idea about your exact needs. Just go through it and if you feel it will work with you, ten you can use it in your program.
Code:
int itr = 0;
while (i <chaineSplit.size()) {
chain[itr] = "";
if (chaineSplit.get(i).startsWith("\"")) {
while (! chaineSplit.get(i).endsWith("\"")) {
chain[itr] + = chsp.get(i) + " ";
i + +;
}
}
chain[itr] + = chsp.get(i);
i + +;
itr + +;
}
for (String s: string)
if (s! = null)
System.out.System.out.println(s);
Bookmarks