redo java output