M
Miller_Man
I am new to Java and my teacher wants us to use the JOptionPane to input
data. It appears to only return a string. When I try to check in if
statement I get errors. I figured out how to change a (string)number to
an integer with parseInt but I can't convert string to a char to check in
if statement.
ie: if (answer == 'Y') gives me error string/ char mismatch
Any help would be great.
Thanks
data. It appears to only return a string. When I try to check in if
statement I get errors. I figured out how to change a (string)number to
an integer with parseInt but I can't convert string to a char to check in
if statement.
ie: if (answer == 'Y') gives me error string/ char mismatch
Any help would be great.
Thanks