What is the output of the following code?
1 public class Test {
2 public static void main(String[] args) {
3 int list[] = {1, 2, 3, 4, 5, 6};
4 for (int i = 1; i
5 list[i] = list[i - 1];
6
7 for (int i = 0; i
8 System.out.print(list[i] + " ");
9 }
10 }
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.