This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Did you try looking at the Javadoc for ArrayList for a method that might give you the index Of an object ?
Of course, a better solution would be to create a class to hold your username and password and just add instances of this class to the ArrayList. You will need to override the equals() and hashCode() methods in your class in order to retrive the instances from the ArrayList. A bit more work, but when you come to add more attributes to your user it will make life a lot easier,
Joined: Aug 23, 2006
Thank's Joanne. I'm a realy new in this proglem and i'll be happy if you can give a little example how to do that. It'll be very helpful for me to understand how the think is working.