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 |
Can a constructor be made final?
What is the exact difference in between Unicast and Multicast object ?
Is null keyword in java?
The class "Class" is belongs to which package?? a) java.lang b)java.lang.reflect c)java.util d)None
What is temp in java?
How do you sort a string in alphabetical order in java?
What does function identity () do?
What is the inheritance?
How core java/j2ee project performance can be measured ?
What are the differences between this and super keyword?
Does java support multiple inheritances?
What is the point of java?