I have a program that captures a substring between two strings and returns the value instance to an arrayList, however if the value already exists or contains certain symbols I want my program to dump the string and look at the next line.
I have done this with a series of IF statements however, when my program is executed its still returning many string values that contain these character symbols.
I have tried leaving the loop blank thinking that maybe it will just abandon the string within the IF statement if the conditions aren't met. But the string values are still comming through. Another method I have tried is setting the variable value for resourceline to null. But that just causes compiler errors.
Please can someone help
p.s. Apologies if there are any formatting errors