✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
public class JavaApplication { public static void main(String[] args) { int x[] = new int[10]; System.out.print(x[0] + ", " + x[9] + ", "); for (int i = 0; i < x.length; ++i) { x[i] = i; } System.out.println(x[0] + ", " + x[9]); }}