HashCode is a mathematical formula(there is no best hash function) that returns some integer value.
This integer value is used as index in array.
Example
hashCode(int value){

/*Some hash...