[java] Conversion from Long to Double in Java