我想把密码替换成*******这符号,但我不知怎么去实现-----------------大家请进
import java.util.*;public class Accp9_3 {
public static void main(String[] args) {
System.out.println("--欢迎进入学员注册系统--");
Scanner input=new Scanner(System.in);
System.out.print("请输入您的账号:");
String zhanghao=input.next();
System.out.print("请输入您的密码:");
String possword1=input.next();
System.out.print("请确认您的密码:");
String possword2=input.next();
if (possword1.equals(possword2)){
String mima=possword1=possword2;
System.out.println("恭喜您,注册成功!!!");
System.out.println("您的账号是: "+zhanghao + "您的密码是: "+mima+"\n请记好的您的账号和密码,以防遗忘!!! ");
}else{
System.out.println("密码不一致,请重新注册!!!");
}
}
}