Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about if-else

 
ming ming
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In the above code y when i enter the name "Jason", it will not display the name???
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if ("Jason".equals(name)){
...
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic