Paste has expired but that's ok. You can use String instead of ArrayList because this works:
String town = "Helsin";
town = town + "ki";
System.out.println(town); // Helsinki
So you start with an empty String and build it one character at a time. You know the password length, i.e. how many
times you need to add a new character to your String password. Then you just need a way to randomly pick a character.
For this purpose the first tip in the exercise is pretty important.