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 advantages of compiled language?
Why do we need autoboxing in java?
What are the different types of data structures in java?
Differentiate between static and non-static methods in java.
class test { private static void main(String []adsf) { } } explain me that the above code is error or exception
Explain about doubly linked list
0 Answers Aditi Placement Service,
waht happens when a return type ,even void is specified for a constructor?
Can you override private or static method in java?
What does java stand for?
What are multiple inheritances?
What is the use of keywords in java?
Using callable statement how can you pass out parameters, explain with example?