Need some help with a Java problem
Extracted text: // Create a program that fills an array with the number sequence: 0, 2.2, 4,4, 6.6, ... // and then displays the array elements using a field width of 10 with 3 decimals. 1 2 3 public class Filling { 4 5 6. // STATIC MAIN METHOD public static void main(String[] args) { // CONSTANTS 7 9. 10 11 12 // VARIABLES 13 14 15 16 // OBJECTS // Different arrays will be substituted here double[] array = {1.0, 2.0, 3.0, 4.0}; 17 18 19 20 21 // SOLUTION 22 23 24 25 26 // Fill Array 27 28 29 30 31 System.out.println("Number of elements in the array: " + arrayElements); 32 33 // Display Array 34 35 36 } } 37 38
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here