Added java print out