✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Mit ír ki a következő program?
public class Main { public static void main(String[] args) { int[] t1 = new int[4]; for (int i = 0; i < t1.length; ++i) { t1[i] = 10; } int[] t2 = new int[2]; for (int i = 0; i < t2.length; ++i) { t2[i] = 20; } t1 = t2; for (int e : t1) { System.out.print(e + ","); } }}