write a program to create an vector and listeterator.and value
should be enter through keyboard.
Answer / magreal
public static void main(String[] args) {
String str;
Vector<String> v = new Vector<String>();
do{
str = TextIO.getln();
v.add(str);
TextIO.putln("Add the item ? Y/N");
}while(TextIO.getlnBoolean());
for(String s: v){
TextIO.putln(s);
}
}
| Is This Answer Correct ? | 0 Yes | 2 No |
What is anagram in java?
Is list ordered in java?
what is the difference between pagecontext and servletcontext?
Define nashorn in java8.
java program with complete 4 oops concepts implemented example
Can we have multiple classes in single file ?
What is a priority queue java?
What is arraylist e in java?
Which programming language is most secure?
What is a local block?
What is difference between an object and a class?
why constructor dont have returns type?