wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes IF Else Error. Why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "IF Else Error. Why?" Watch "IF Else Error. Why?" New topic
Author

IF Else Error. Why?

Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165





Try1.class







What should be the output for (2) and (3) and why?


Thanks,
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

never use '==' evaluation for Strings. Always "value".equals(value)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IF Else Error. Why?
 
Similar Threads
return value???
Short-Circuit Evaluation
Constructor Chaining
Collections problem
Question mark in Java