title: ArrayList to HashMaps in Java
body: <p>I am trying to get values from an <code>ArrayList</code> that is sorted and want to store it in a <code>HashMap</code>,  where the values of the <code>ArrayList</code> become keys of the <code>HashMap</code>. Will the order of the values in the <code>HashMap</code> still be the same as that of <code>ArrayList</code>? </p>