What is wrong in the following method?
public class Test {
public static void main(String[] args) {
xMethod(1234567);
}
public static void xMethod(double n) {
if (n != 0) {
System.out.print(n);
xMethod(n / 10);
}
}
}
public class Test {
public static void main(String[] args) {
Test test = new Test();
System.out.println(test.toString());
}
public Test() {
Test test = new Test();
}
}
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.