Subscribe to Stupid Java Tricks        RSS Feed
-----

Using the New java.io.Console Class

Icon Leave Comment

Quote

The 1.6 release of the JDK included a new java.io.Console class, which adds some new features to enhance and simplify command-line applications. Notably, Console includes a method specifically for reading passwords that disables console echo and returns a char array; both important for security. Scenario: Getting Username and Password Getting a user’s username and password is...read more

0 Comments On This Entry

 

January 2022

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
3031     

Recent Entries

Recent Comments

Search My Blog

4 user(s) viewing

4 Guests
0 member(s)
0 anonymous member(s)