Java will avtoobektom doubleup double, but it will not be your car boxes double[]up double[], so it does not match Object[]. As a result, instead of unpacking in varargs, Object...your array is treated as the array itself, which obviously cannot be formatted as double.
If you declare your array as double[]instead double[], the call formatworks.
source
share