write a program to create an arraylist and listeterator.and
value should be enter through keyboard.
Answer / magreal
public static void main(String[] args) {
String str;
List<String> l = new ArrayList();
int i=0;
boolean more = true;
do{
str = TextIO.getln();
l.add(str);
i++;
TextIO.putln("Add new item ? Y/N");
}while(TextIO.getlnBoolean());
for(String s: l){
TextIO.putln(s);
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
What is access modifiers?
What primitive Java types? Howmany are they and what are their names?
What are serialization and deserialization?
What is the generic class?
Explain about the security aspect of java?
What is preflight request?
how to deploy tomcatserver to weblogic server? write d following steps?
How is object created in java?
What is a thin-client application?
What are Access Specifiers and Access Modifiers.
Explain access specifiers?
0 Answers Thomson Reuters, Virtusa,
Is string is a class in java?