Training console Java application