Java Generate Unique Integer Id