This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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.