Further work on java console