java solution to Binary Tree Preorder Traversal

1st version
java solution to Binary Tree Preorder Traversal

2nd version
java solution to Binary Tree Inorder Traversal