• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why still waiting for first name while I supplied "Avinash"  RSS feed

 
Avinash Oak
Greenhorn
Posts: 15
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



[Added code tags - UseCodeTags]
 
Suresh Sajja
Ranch Hand
Posts: 34
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

if you want to test if two strings have the same value you should use .equals
== is for testing weather two strings are the same object.

--Suresh
 
Avinash Oak
Greenhorn
Posts: 15
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Suresh!!
Its done..
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Avinash:

First: UseCodeTags (←click).
Second: Read the HowToAskQuestionsOnJavaRanch page. I'm afraid doesn't tell us much.

Winston
 
Avinash Oak
Greenhorn
Posts: 15
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston :

Thanks for your advice, here I am new. I'll keep in mind while posting.
;)
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Avinash Oak wrote:Thanks for your advice, here I am new. I'll keep in mind while posting. ;)

No probs.

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!