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 equlas() and hashcode() contract in java? Where does it used?
What is the difference between multiple processes and multiple threads?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
How to perform selection sort in java?
Difference between String & StringBuffer
16 Answers IBM, Infosys, Tech Mahindra, Wipro,
What is methodological theory?
What is space character in java?
What is OOP?
Explain the significance of class loaders in bootstrap?
Can you pass functions in java?
What is the difference between the font and fontmetrics classes in java programming?
Define a java class.