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.



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

Post New Answer

More Core Java Interview Questions

What is anagram in java?

0 Answers  


Is list ordered in java?

0 Answers  


what is the difference between pagecontext and servletcontext?

5 Answers   JBA Infotech, TCS,


Define nashorn in java8.

0 Answers  


java program with complete 4 oops concepts implemented example

0 Answers   Infosys, NIIT,


Can we have multiple classes in single file ?

0 Answers  


What is a priority queue java?

0 Answers  


What is arraylist e in java?

0 Answers  


Which programming language is most secure?

0 Answers  


What is a local block?

0 Answers   Global Logic,


What is difference between an object and a class?

0 Answers   Amdocs,


why constructor dont have returns type?

9 Answers   IBM,


Categories