jQuery in Action, 2nd edition*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes about if-else 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 » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "about if-else" Watch "about if-else" New topic
Author

about if-else

ming ming
Ranch Hand

Joined: May 17, 2006
Posts: 54

In the above code y when i enter the name "Jason", it will not display the name???
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
if ("Jason".equals(name)){
...
}
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: about if-else
 
Similar Threads
How to check entered value is of which primitive type?
looped menu
is there a quicker way to read in input besides bufferedreader?
Java Array search and print
err get and set methods and scanner class / JOptionPane