id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

konstans@stuy.edu apcs1 > removeAllTargetV2
prev  |  next  |  chance

Given an ArrayList of Double, and a target Double, modify the ArrayList of Double so that has all of the target Double is removed. Use remove on the original list, then return it. Do not make a new ArrayList here.


removeAllTargetV2([5.0], 0.0) → [5.0]
removeAllTargetV2([5.0], 5.0) → []
removeAllTargetV2([], 0.0) → []

...Save, Compile, Run (ctrl-enter)

public ArrayList<Double> removeAllTargetV2(ArrayList<Double> nums, Double target){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy