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

Can you give any adaptive significance for left or right dominance in thumb or arm crossing?
Which of the following is one observation that Darwin made as he developed his theory of natural selection?
10 chunks of Swiss cheese total weight
a store sells boxes of juice in equal size packs. Garth bought 18 boxes, Rico bought 36 boxes, and Mai bought 45 boxes. what is the greatest number of boxes in
What is -5w = 45 on a numberline
Emily wants to make a rectangular model with a height of one connecting cube. She wants to make the model in exactly 2 different ways. How many connecting cubes
what is 14 times 16 need answer fast
"New drama" includes any play written since 1944. a. True b. False
3 posters cost $9.60. At this rate how many posters can you buy with $48
Some kinds of data can be summarized in an illustration like the one below. Assume that the plants that are shown in the illustration are accurately drawn to sc