I have always worked with PHP and I am new to Java. I have read now a few tutorials about hashmaps, arraylist etc., but I am confused now which one is the right choice for me. In PHP I used to create arrays like this:
$test['google']['color'] = "red";
$test['google']['value'] = 67;
$test['IBM']['color'] = "blue";
$test['apple']['value'] = 23;
.
.
I also want to search for the key and value. What would be a good choice in Java?