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 are the standards to place package statement within a source code file?
What is functional interface in java example?
How many types of exception can occur in a java program?
What is difference between path and classpath in java?
What are the two types of java programming?
i would like to attend for an interview of datalab technologies company i want to know the pattern of imnterview.
how to print the below in java?thanks in advance.... * * * * * * * *
How can we achieve thread safety in java?
What restrictions are placed on method overloading and method overriding?
What are assertions in java?
Can you call a private data from an inner class?
Explain about doubly linked list
0 Answers Aditi Placement Service,