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 casting?
What is use of super keyword?
What is the meaning of I ++ in java?
What is a final class in java?
What is the += operator called?
what is use of marker interface? give me good example?
What is a method header?
What is the program compilation process?
What is cr keyboard?
What is the implementation of destroy method in java. Is it native or java code?
what is business delegate?
Explain how to force the garbage collection in java.