That if statement could work if you built the String of results and tested that String.
Type: Posts; User: Norm
That if statement could work if you built the String of results and tested that String.
Does that code you posted compile? The syntax of the if condition looks wrong.
Build a String in one step and test its value in another.
That sounds like it would work.
How are you removing the name from the prompt? If looks the display of the names is in a String literal in the JOptionPane call and not in a String variable where you can remove one of the names.
...
That is what programmers do when they scan their code.
Not sure what you mean by an "if test". Are you referring to the boolean value determined by the conditions in ()s?
You could set a boolean...