What is wrong in the following code?
1 class Test {2 public static void main(String[] args) {3 A a = new A();4 a.print();5 }6 }78 class A {9 String s;1011 A(String newS) {12 s = newS;13 }1415 public void print() {16 System.out.print(s);17 }18 }
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.