CS1083/Submissions/Final/Q9.java

10 lines
228 B
Java
Raw Permalink Normal View History

2022-10-07 00:44:12 -03:00
public class Q9 {
private void print(Node current) {
if (current != null) {
print(current.right);
System.out.println(current.word);
print(current.left);
}
}
}