Initializing an array of integers

Report a typo

Initialize an int array named numbers with five elements 12, 17, 8, 101, 33 and output it.

Use the provided code template.

Write a program in Java 17
import java.util.Arrays;

public class Main {

public static void main(String[] args) {

int[] numbers; // initialize the array

System.out.println(Arrays.toString(numbers));
}
}
___

Create a free account to access the full topic