0
Java program to accept a list of 5 elements from command line and store them in vector
3 Respostas
+ 3
Scanner scan = new Scanner(System.in);
for (int i=0; i<5; i++) {
String s = scan.next();
vector.add(s);
}
but also why r u using a vector and not something like an arraylist
+ 1
no problem
0
Tysm Edward for ur help.