Topic: 怎样让控制台输入的文字不回显? |
Print this page |
1.怎样让控制台输入的文字不回显? | Copy to clipboard |
Posted by: lvjing79 Posted on: 2004-04-08 09:30 我记得在c里面就挺简单,有一个函数就能完成。但用java的System.in却怎么也查不到资料,我想在输入密码时不回显,哪位大虾告诉我该如何做呢? |
2.Re:怎样让控制台输入的文字不回显? [Re: lvjing79] | Copy to clipboard |
Posted by: floater Posted on: 2004-04-08 10:55 http://java.sun.com/features/2002/09/pword_mask.html |
3.Re:怎样让控制台输入的文字不回显? [Re: lvjing79] | Copy to clipboard |
Posted by: lvjing79 Posted on: 2004-04-08 13:09 多谢,我觉得java好像对这个问题一直不重视,还是sun公司根本就不认为这是个问题,鼓励大家都学多线程呢? |
4.Re:怎样让控制台输入的文字不回显? [Re: lvjing79] | Copy to clipboard |
Posted by: menzy Posted on: 2004-04-08 18:21 是有些烦琐,java对 System Console的控制能力确实有限。 |
5.Re:怎样让控制台输入的文字不回显? [Re: lvjing79] | Copy to clipboard |
Posted by: floater Posted on: 2004-04-08 22:55 well, c doesn't have a good default network lib like in java. This is not the worst, either. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |