179k views
5 votes
Write a method called removeinrange that accepts four parameters: an arraylist of integers, an element value, a starting index, and an ending index. the method's behavior is to remove all occurrences of the given element that appear in the list between the starting index (inclusive) and the ending index (exclusive). other values and occurrences of the given value that appear outside the given index range are not affected. for example, for the list [0, 0, 2, 0, 4, 0, 6, 0, 8, 0, 10, 0, 12, 0, 14, 0, 16], a call of removeinran

1 Answer

4 votes
yjhgujo yo8 t hi/ l h fylif .i yo.u/;i pb
[
User Jyalim
by
7.3k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.