Welcome to the Ranch
Have you tried the code? The values in the following code undergo automatic widening conversion:-
jshell> int one = 1, two = 2, three = 3; var doubles = new double[] {one, two, three};
one ==> 1
two ==> 2
three ==> 3
doubles ==> double[3] { 1.0, 2.0, 3.0 }
I shouldn't have declared multiple values on the same line.