Java and terminal notes