cfancfan4125 cfancfan4125
  • 03-07-2019
  • Computers and Technology
contestada

The ArrayList class ____ method removes an item from an ArrayList at a specified location.

a.
erase

b.
remove

c.
delete

d.
get

Respuesta :

PhantomWisdom PhantomWisdom
  • 12-07-2019

Answer:

remove

Explanation:

The function used to remove the element in the ArrayList at specific index is remove.

Syntax:

remove(int index)

it used index to remove the element.

ArrayList index start from the index zero. So, if the we enter the index 0 it means remove the element at first position.

for example:

array.remove(1);  it remove the element at index 1 from the ArrayList name array.

Answer Link

Otras preguntas

Which type of connective tissue makes up the greatest proportion of the skeleton of a human embryo?
Find h(6) if h(x) = x2 - 2x - 5. Question 16 options: 53 -19 19 26
Order of Operations Adam has $450. He spends $210 on food. Later he divides all the money into four parts out of which three parts were distributed and one part
Factor the expression 6x^4 - 162x
How do i calculate? All the way to s_75. It’s so long
Difference between cisgender and transgender
what is the following sum 4(^5√x^2y)+3(^5√x^2y)A) 7(^10√x^2y)B) 7(^10√x^4y^2)C) 7(^5√x^2y)D) 7(^5√x^4y^2)
Was the duke of windsor really a nazi sympathizer
Electrolysis of 10.0 g of a binary metal chloride deposits 6.207 g of the pure metal. what is the metal?
A CD usually sells for $16.00. If the CD is 10% off, and sales tax is 5%, what is the total price of the CD, including tax?