Java Converting Double To Int