Improvements to Java example apps

* Use DXUtil to get input and output
* Use some high-level APIs