Post your code in code tags.
Your program seems to work fine here. I suspect you're having a development environment, IDE, or IDE setup problem.
Type: Posts; User: GregBrannon
Post your code in code tags.
Your program seems to work fine here. I suspect you're having a development environment, IDE, or IDE setup problem.
Do not compare String objects using ==, !=, <=, <, >, . . . etc. Use the equals() method.