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

 

simona1@sfusd.edu > removeWordsOfLength
prev  |  next  |  chance

This is very similar to the 2004A1 WordList FRQ. Loop through an ArrayList of Strings and remove any String that has a length equal to the argument len. Finally, return the modified list.


removeWordsOfLength(["a", "be", "see"], 1) → ["be", "see"]
removeWordsOfLength(["a", "be", "see"], 2) → ["a", "see"]
removeWordsOfLength(["a", "be", "see"], 3) → ["a", "be"]

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

public List<String> removeWordsOfLength(ArrayList<String> myList, int len) { }

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: 475

Copyright Nick Parlante 2017 - privacy