Im coming from Perl where Hashes and Arrays are comfortable to use since they are very dynamical and do lots of stuff in the background which usually would annoy the programmer.
Similar to this i start to use hashmaps and ArrayLists since they make the programming work a litte bit easier and faster. But how is the perfomance? Is it recommended to use these types of data for larger projects or should i only limit myself to the core of Java with strings and arrays?
Thanks for all answers:-)))
PerlArrayandPerlHashto do the type of things I like to do with Perl arrays and hashes. If I'm going to use Java arrays, I pretty much manage them in anArrayList. But hash lookups are not going to be near as fast as what basically amounts to a struct, where the offset can be stored directly in the bytecode. I don't always program in Java, but when I do, I use objects for data and containers for relationships and algorithms.