Since yesterday, im working on a Program, that saves 1 password permanently, so its only for 1 time use. The saved password shall be printed by keyboard output later, thats why I thought, id start with an Array. Many people in other questions told me, that they would use ObjectArray or something like that. I am quite new to Java, thats why I would appreciate help. By the way, if you suggest something, id appreciate it, if its a bit more in depth. Here is the Code.
Robot bot = new Robot();
BufferedReader dmc = new BufferedReader(new InputStreamReader(System.in));
System.out.println("How many digits has your Password?");
String digit = dmc.readLine();
int d = Integer.parseInt(digit);
String[] password = new String[d];
System.out.println("Please enter your Password in single letters.");
int i = 0;
while (password[d - 1] == null) {
password[i] = dmc.readLine();
i++;
}
int j = 0;
while(j != d){
password[j] = "KeyEvent.VK_" + password[j];
j++;
}
poorly this doesn't work properly.