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 17:00
Match the following. 1. show grouping of word processing tasks that can be performed quick access toolbar 2. shortcut location for commonly used elements scroll bars 3. organized commands used to modify documents ribbon 4. used to align and measure content in a word screen zoom bar 5. vertical and horizontal bars that are used to navigate through a document contextual tabs 6. displays the name of the document in use ruler 7. allows users to enlarge or shrink a visual of a word document title bar
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
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
Health, 23.05.2021 07:00
question
Mathematics, 23.05.2021 07:00
Questions on the website: 13722367