write a program to create an vector and listeterator.and value
should be enter through keyboard.
Answer Posted / 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 |
Post New Answer View All Answers
Is main a keyword in java?
What is sizeof in java?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is the java idl system?
What the difference is between execute, execute Query, execute Update?
What is final keyword in java?
What is set in java?
What is the purpose of static keyword in java?
What is the Difference between Final Class && Abstract Class?
What does n mean in java?
What methodology can be utilized to link to a database?
Is java call by reference?
What is the byte range?
Write a program to search a number in the given list of numbers.
Can we define static methods inside interface?