LCM of two numbers using Java