Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

urgent: how to simulate getchar()  RSS feed

 
Kalpesh Soni
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In C u can use get char to read input from console and it wont echo it
i am asking some user for password but if i type something, the console shows what i typed !
how can i stop the echo ing ?
I tried with bufferedReader.ready() and all but nothing seems to be working !
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, Java provides no way to disable echo when reading from System.in.Java World provides some ideas on some alternatives.
[ July 16, 2002: Message edited by: Snigdha Solanki ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!