Array vs map, what do you think is fastest for lookups? Arrays and maps are critical elements in a Java programmer’s arsenal of tools. So what’s the most efficient? Of course it’s maps with
O(1)search! Or could it be Arrays in some scenarios?