This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have a collection of URLs (both DEV & TEST) which contains respective username & password for that URL to be invoked, I want these details to be set in the respective Hashmap from where I can iterate and pass it to the respective URL class (with the URLs) with username & password. Please clarify how we can go about it with an example? Whether we can use Hashmap or ArrayList? Please clarify with an example.