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

What are operators and its types?

1109


Is 0 an even number?

1028


describe synchronization in respect to multithreading? : Java thread

974


Can java run on google chrome?

1251


What is an inner class in java?

1021


Explain the differences between abstraction and encapsulation?

1105


What do you understand by private, protected and public?

1092


What are the java ide's? Explain

1130


What is function declaration?

1022


Why we cannot override static method?

1121


Why scanner is used in java?

1131


What is bifunction in java?

1268


What is the difference between java applets and applications?

1218


What is palindrome in java?

1042


Can private class be inherited in java?

1086