Closed yossigil closed 5 years ago
Chagne it to return a String. Do not print from this function
Which traverse function? In which class?
private static String traverse(P p, int depth) { if (p instanceof P1) traverse((P1) p, depth); else traverse((P2) p, depth); }
Done.
Chagne it to return a String. Do not print from this function