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 |
why marker interfaces are there in java
What is the use of static keyword in "public static void main()"
10 Answers College School Exams Tests, Infosys, Six Dee Telecom,
What is object data type?
Difference between Choice and a List?
How are the elements of a gridbaglayout organized?
What is time complexity java?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
Can an interface be final?
write SQL command for table employee where print first name or last name start like "A" and who is working in domain(angular js,java,dotnet)
why we write public static void main (String args[]) in core java plz explain briefly??????????????????
Explain about assignment statement?
Is it possible to specify multiple jndi names when deploying an ejb?