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

The PPC illustrates how countries, businesses, or individuals make the WHAT to produce decision.
A regular hexagon has a perimeter of seventy-eight centimetres. Find the length of one of its sides.
Rashad walks 4 miles in 74 minutes. Express his rate as a simplified fraction
Can anybody help me with explaining polynomials and multiplying them with exponents to please don’t give me a random answer just to get points! I’m really stuck
organising end-of-term party school (email form)​
What are the five qualifications a material must meet to be classified as a mineral?.
Four substances are important for both photosynthesis.
According to the frank-starling law, a bigger preload will result in __________.
123,456.78901 to ten – thousandths -
The South’s resentment of the tariffs of the American System was an example of compromise. states’ rights. sectionalism. federalism.