✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Результат компіляції програмного коду:
public class One {
int a, b;
One(int i, int j) {
a = i;
b = j;
}
void meth(One o) {
o.a *= 2;
o.b /= 2;
}
}
public class OneMain {
public static void main(String[] args) {
One one = new One(2, 4);
System.out.println(one.a + " " + one.b);
one.meth(one);
System.out.println(one.a + " " + one.b);
}
}