I'm trying to get some input using JOptionPane. I want the user to enter a string and if this string is equal to the string I'm looking for I want to execute some code.
The problem is I'm unsure how to do this. I've tried the following.
I know, but my warning is to prevent any unexpected errors when Michael just copies your little example and is not aware of the possible NullPointerException.
Rob Prime wrote:I know, but my warning is to prevent any unexpected errors when Michael just copies your little example and is not aware of the possible NullPointerException.