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 |
Java support what type of parameter passing ?
What are the restriction imposed on a static method or a static block of code?
What is meant by null and void?
What does string intern() method do?
What is the purpose of the finally clause?
Explain the meaning of java applet.
what is difference between business delegate and data access object(dao)? in java?
What are access specifiers in java ?
0 Answers Akamai Technologies,
Can we overload final method in java?
What is double in java?
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?