Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Username and password

 
Amrita Dole
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to accept username and passowrd from the user and authenticate it against the username and passowrd I have in my program which have been stored as Strings.
How do I accept user name and password and how do I authenticate it?
Thanks.
Amrita
 
Angel Dobbs-Sciortino
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at String.equals(Object anObject) in the Java API.
Angel
[ November 18, 2003: Message edited by: Angel Dobbs-Sciortino ]
 
Amrita Dole
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
That was useful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic