subject

Write a java program that use the arraylist command. the program should initially create a list of 10 countries that you would like to visit. do not include russia or peru in your initial list as you will be using them later in the exercise. have the program retrieve the 10 names and print them to the screen using println. the program should then retrieve and print only what is stored at index 4.the program should then remove what is stored at index 9.the program should then add russia at index 2.the program should then replace what is stored at index 7 with peru. the program should then print the size of the arraylist the program should then print all of the items in the arraylist and their index using println

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_cost should be removed since header files should not contain constants.c)the definition of book should be removed since header files should not contain class definitions.d)the body of the calculate_terms function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
If joey was single and his taxable income was $9,500, how much would he pay in taxes each year?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
You know the right answer?
Write a java program that use the arraylist command. the program should initially create a list of 1...
Questions
question
Mathematics, 17.09.2020 15:01
question
English, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Social Studies, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Health, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Spanish, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
question
English, 17.09.2020 15:01
question
Mathematics, 17.09.2020 15:01
Questions on the website: 13722363