✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Kaks klassi (Main ja Number). Mis prinditakse välja?
public class Main {
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
Number n = new Number(i++);
System.out.println(n.getValue());
}
}
}
public class Number {
private int value;
public Number(int value) {
this.value = value;
}
private int getValue() {
return value;
}
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!