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 |
Explain the difference between map and flatmap stream operation?
Can you override static methods?
What is numeric function?
What is use of functional interface in java 8? Explain
How are multiple inheritances done in Java?
what is the use of StringBuffer?
i need example for java abstraction. where we use abstraction and why we need abstraction.
how cani read a command line argument?(usingfile object).
Can a final variable be null?
Why is boolean important?
How do you read a char in java?
What is difference between local variable and global variable?