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 02:30
Write a program that takes in 3 inputs [players (int type), expected game time (double type), team (char type)] and calculates actual game time (double) based on the following conditions: if the number of players or the expected game time is less than or equal to zero, it should output wrong input if the number of players is greater than 0 and less than or equal to 6 and if they are on the â€r’ or â€r’ team, their game time will be 10% faster. and if they are on the â€b’ or â€b’ team, their game time will be 15% faster. and if they are on the â€y’ or â€y’ team, their game time will be 20% faster. and if they are on any other team, they will play 0% faster. if the number of players is greater than 6 but less than or equal to 12 and if they are on the â€r’ or â€r’ team, their game time will be 20% faster. and if they are on the â€b’ or â€b’ team, their game time will be 25% faster. and if they are on the â€y’ or â€y’ team their game time will be 30% faster. and if they are on any other team, they will play 0% faster. if the number of players is greater than 12 but less than or equal to 18 and if they are on the â€r’ or â€r’ team, their game time will be 30% faster. and if they are on the â€b’ or â€b’ team, their game time will be 35% faster. and if they are on the â€y’ or â€y’ team, their game time will
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Iam trying to get my google account back for school and business, can someone ?
Answers: 1
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, 28.04.2021 01:00
question
History, 28.04.2021 01:00
question
Spanish, 28.04.2021 01:00
question
Mathematics, 28.04.2021 01:00
question
Arts, 28.04.2021 01:00
Questions on the website: 13722367