1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lidiya [134]
4 years ago
14

Assume that an ArrayList of Integers named salarySteps that contains exactly five elements has been declared and initialized. Wr

ite a statement that assigns the value 160000 to the last element of the ArrayList salarySteps.
Computers and Technology
1 answer:
Artyom0805 [142]4 years ago
4 0

Answer:

Following are the statement to this question:

//using set and size in-built method

salarySteps.set(salarySteps.size()-1, 160000); //assign value at the last element of the list

Explanation:

Description of the above can be described as follows:

  • In the question, it is declared, that an array list "salarySteps", is defined, which contains five integer elements, in this array-list at the last we insert an integer value, which is "160000".
  • In the above code, the array list "salarySteps" uses a set method, inside this method a size method is used, that inserts the value "160000" at the last element of the array list.  
You might be interested in
JAVA
shusha [124]

public class JavaApplication64 {

   

   public static void main(String[] args) {

       int count = 0;

       for (int i = 23; i <= 89; i++){

           if (count == 10){

               System.out.println("");

               count = 0;

           }

           System.out.print(i+" ");

           count += 1;

       }

   }

   

}

I hope this helps!

5 0
4 years ago
By recording where a hockey puck goes into a net, a goalie can...
Paraphin [41]

Answer:

2. determine where they are not successfully blocking goals.

Explanation:

In the game of ice hockey, a goalie also referred to as goaltender refers to an individual (player) who is saddled with the responsibility of preventing the hockey puck from going into his or her net. When the hockey puck is prevented by the goalie, it simply means that the opposing team is prevented from having a goal or scoring.

The area in front of the net where a goalie plays is known as goal crease.

By recording where a hockey puck goes into a net, a goalie can determine where they are not successfully blocking goals because it helps them to see where they successfully made a save (block) and where they did not.

8 0
3 years ago
Read 2 more answers
Write the algorithm for finding the perimeter of a rectangle using English like form step by step
olya-2409 [2.1K]
L+L+W+W= Permiter
Or Lenght+Lenght+Width+Width= Perimeter
That’s all just add all the 4 sides
8 0
3 years ago
What your computer can do to you?
hjlf

Answer:

it can blind you because too much light in ur face is bad

Explanation:

6 0
3 years ago
Read 2 more answers
Which of the following are best and safe practices for shutting down a computer or disconnecting a device? Check all of the boxe
Mademuasel [1]
D and A because in order to be safe you need to unplug it to be safe
6 0
3 years ago
Read 2 more answers
Other questions:
  • Variable names may contain spaces and punctuation symbols. True False
    15·1 answer
  • How has the internet of things impacted buisness?
    15·1 answer
  • A chiropractor is looking at the Security Standards Matrix and believes that it is unnecessary to address the encryption and dec
    8·1 answer
  • Another name for the office button menu is the toolbar. true or false.
    7·2 answers
  • Plz help need answers!???idk if u can zoom
    13·1 answer
  • To all paladins players out there!!!!!
    14·1 answer
  • Why would you choose a mobile device over a laptop? 1-2 sentences.
    11·1 answer
  • What is a query? State it's uses.​
    8·1 answer
  • Can anyone tell me about Microsoft some important features for partical
    11·1 answer
  • Choose the answer that best completes the visual analogy.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!