Here you can find the source of calculateHash(int x, int y)
public static int calculateHash(int x, int y)
//package com.java2s; //License from project: Open Source License public class Main { public static int calculateHash(int x, int y) { return (x * 1000) + y; }//from w w w . j av a 2 s . c o m }