I'm an ICT student and I need help. Our professor asked us to create a login system. I've already made one, but the problem is that the input is supposed to be hidden. How do I do that?
For example,
import java.util.Scanner;
int password;
Scanner x = new Scanner(System.in);
password = x.nextInt();
I need to hide the input, and turn that message into an asterisk '*'. Kinda how Facebook does it.