What is wrong in the following program?
1 public class Test {
2 String text;
3
4 public void Test(String s) {
5 text = s;
6 }
7
8 public static void main(String[] args) {
9 Test test = new Test("ABC");
10 System.out.println(test);
11 }
12 }
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.