subject

Countfamilies class), and an exercise where main uses the argsarray; the first two exercises are worth 4 and 5 points, respectively; each extra credit exercise is worth 6 points.

create a program called initializers. java to practice creating and initializing or setting the values in an int array, and accessing elements in that array in main:
declare and instantiate an intarray named array1having size 10using the java array initializer syntax with { }to fill array1with the evenintegers 2 through 20. hint: use just one statement:
int[] array1 = { 2, 4, … };
using a forloop, print out the elements in array1across one line, separated by single spaces, then print a blank line.
now ask the user how long to make the array using the scanner170or keyboard nextint() method, and assign a newint array of that length to reference variable array1, then fill it with evenintegers starting with 2, using a for loop; finally, print array1’svalues, using a for loop as above.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:40
Which is a benefit of getting information from a government website? a. the information will be easy to understand. ob. the information will be the most current. oc. the information can be trusted.
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
You know the right answer?
Countfamilies class), and an exercise where main uses the argsarray; the first two exercises are wo...
Questions
question
Mathematics, 27.10.2019 20:43
question
Mathematics, 27.10.2019 20:43
question
Chemistry, 27.10.2019 20:43
Questions on the website: 13722361