|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Junior Member
Iscritto dal: Jun 2011
Messaggi: 18
|
[JAVA] inserire password nascosta come input da tastiera
Salve
![]() Devo inserire una password come input da tastiera e per fare ciò utilizzo la classe Scanner Codice:
Scanner in = new Scanner(System.in); String pw = in.nextLine(); |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Oct 2007
Città: Padova
Messaggi: 4131
|
La classe java.io.Console ha un metodo readPassword... Prova a dargli un'occhiata, magari fa al caso tuo.
__________________
As long as you are basically literate in programming, you should be able to express any logical relationship you understand. If you don’t understand a logical relationship, you can use the attempt to program it as a means to learn about it. (Chris Crawford) |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 10:21.