I have the following bit of code in one of my programs:
The compiler keeps returning an error message of incompatible types, saying that it's expecting a double type, and that its declared as a String??? Does the JOptionPane class only accept Strings? I'm so confused. Thanks for your help in advance!
posted 12 years ago
You delcared coa as double but the showInputDialog gets a string from the user.
Then it should compile without error. [ September 17, 2005: Message edited by: KJ Reddy ]