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 |
INTERVIEW QUESTION FOR ANDROID
explain autoboxing in java?
Which collection is thread safe in java?
How do you classify Dialog Box?
make a method which any number and any type of argument and print sum of that arguments.....
Hi, well i am unable to understand that why it is mandatory to have same hashcode, if two objects are same? Thanks in advance.
What is the largest long allowed by java?
Explain class A{} class B{} class C{} all the three classes are saved in a single file name, what the name should i provide to the file ,in what file name should i run the program? Ple Explain
What is :: operator in java?
What is the difference between stringbuffer and stringbuilder?
What is a methodologist?
What does the @override annotation do?