i need help ! instead of ouputting
password : admin

i want to input asterisk
password : *******

thanks in advance

import java.io.*;
class finals {
    public static void main (String[] args) throws Exception {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    String user,pass,length,width,name,choice;
    int x,y,z,iw,il,column=1,space,ichoice;


    System.out.println("PYRAMID NESTED LOOPS");
    for (x=3;x>=0;x--) {
    System.out.print("Username :");
    user=br.readLine();
    System.out.print("Password :");
    pass=br.readLine();
}} 

//heres the part 

this is the part of my program

You have to use the Console class and its readPassword methods. In that case it's probably easier to drop the BufferedReader and just use Console's readLine.
Docs are in the usual place.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.