Java console input utilities