Use the Java Console Class for User Input

preview_player
Показать описание
Here's a quick tutorial on how to use the Java System's Console class to get input from the user and either store it encrypted with readPassword(), or just get the basic Java user input as plain text.

Otherwise, in my opinion, this is the easiest way to get user input in Java programs, especially stand-along Java programs that use the console.

Рекомендации по теме
Комментарии
Автор

thanks, but system.console is often used in the project ? because i still have few things why we dont use GUI instead of readline ?

nouraldinurfan
join shbcf.ru