Agregar valor con n variable con ArrayList en Java
Scanner in = new Scanner(System.in);
int n = 5;
ArrayList<String> addName = new ArrayList<>();
for(int i = 0; i < n; i++){
addName.add(in.nextLine());
}
icy_milktea27