0

How do I prevent input from being visible on the display console in Java? I, for instance, want to take some private info as input from the user, but don't want to make it visible to the people around him.

1

1 Answer 1

0

You can use the Console class and use the readPassword() method. When user enters data, it will be replaced with asterisks.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.