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

 

simona1@sfusd.edu arraylist2 > remove5s
prev  |  next  |  chance

Given an ArrayList of Integers, return the ArrayList after removing all elements with a value of 5.


remove5s([1, 2, 3, 4, 5]) → [1, 2, 3, 4]
remove5s([5, 2, 5, 4, 5, 12, 45]) → [2, 4, 12, 45]
remove5s([1, 2, 3, 5, 5]) → [1, 2, 3]

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

public ArrayList<Integer> remove5s(ArrayList<Integer> theList){ }

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

Difficulty: 176

Copyright Nick Parlante 2017 - privacy