+ 1
Why is 44 displayed in the output?
It should be a total number of the members, which is 4. https://code.sololearn.com/cCvqQ1djgzUo/?ref=app
1 Odpowiedź
0
Because the total number is printed at 33 line after it is printed in the constructor.
How about changing "System.out.print" into "System.out.println" at 10 lines.