Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program to create an vector and listeterator.and value
should be enter through keyboard.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we able to pass objects as an arguments in java?

1011


What is the use of optional ?

1030


When is update method called?

1138


What are the properties of thread?

923


Can we change the scope of the overridden method in the subclass?

1384


What is void class in java?

962


Is a method a procedure?

1046


What do you mean by formatting?

990


Explain spliterator in java8?

1040


What is parameter example?

1014


Which class is the superclass for all the classes?

1019


Do I need java for windows 10?

1033


Is set thread safe java?

916


What is boolean keyword in java?

1120


What are Normalization Rules? Define Normalization?

1045