Weka is a data-mining tool that can help you build out decision trees using Java.
I will write many more entries in the weeks to come but here's a quick tutorial on how to install it using homebrew.
Install Homebrew package manager for OS X.
The next step is to install Homebrew Cask Extension.
brew install cask
brew cask install weka
Double check your work.
brew cask doctor