I have a question about HashMap
creation. Is there a simple and fast way of HashMap
creation? Maybe, concatenation of two arrays {1, 2, ...}
and {"picture/one.png", "picture/two.png", ...}
.
I am interested in a neat solution. Best practice, so to say.
Every guidance or hint would be very helpful. Thanks.
EDIT: And yes, I know how to initiate a HashMap
. And I looked in javadoc (not even once).
Sorry for bad explanation of my question, maybe it is not very clear. Once more, I am interested in best practice solution. If the best practice solution is a for-loop, so that's it. If there are other options, please, show.