|
-
November 21st, 2006, 03:03 AM
#1
string comparison?
i know this a stupid question, but i don't why this code isn't working:
fct = JOptionPane.showInputDialog("enter a string");
JOptionPane.showMessageDialog(null,fct,"info",JOptionPane.INFORMATION_MESSAGE);
if (fct == "abc")
JOptionPane.showMessageDialog(null,"OK","info",JOptionPane.INFORMATION_MESSAGE);
plz help, i'm new in java
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|