10 lines
228 B
Java
10 lines
228 B
Java
public class Q9 {
|
|
private void print(Node current) {
|
|
if (current != null) {
|
|
print(current.right);
|
|
System.out.println(current.word);
|
|
print(current.left);
|
|
}
|
|
}
|
|
}
|