I am writing a basic Java code to do an inorder traversal of a binary tree.
void inorder() { Stack stack = new Stack<>();