title: Fastest way to generate a hash key for an int[] array?
body: <p>For instance <code>int[] array = {1,2,3,4,5,6,7,8,9};</code></p>
  
  <p>I want to convert this into <code>int a  = 123456789;</code></p>
  
  <p>I am intending to use this as hash key. </p>
  
  <p>My idea is to convert the array into a string using <code>Arrays.toString</code>and then convert it back to an integer. But I think that is not a good solution. Any thoughts? </p>