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

Is a boolean variable?

970


How do you write a conditional statement?

911


What is the purpose of stub and skeleton?

974


Can we convert integer to string in java?

1019


What is anti pattern in java?

918


How do you access command-line arguments within the code?

1015


What is arraylist e in java?

1018


what is object slice?

2022


Does java have extension methods?

926


What is the difference between Grid and Gridbaglayout?

1164


Explain the difference between intermediate and terminal operations in java8?

1061


Do you need to import math in java?

952


What is meant by final class?

1045


Why lambda expression is used in java?

1010


How do you write methodology?

931