logo

Crowdly

Browser

Add to Chrome

Mit ír ki a következő program? public class Main { public static void m...

✅ 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 + ",");

}

}

}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.ms.sapientia.ro?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome