at the bottom of your segment of code you can do this... Take out the print statements in your if statement blocks and add the printing code at the end.



if (some1.equals(some2))
print blah...