about | help | code help+videos | done | prefs |
toSue
Given an ArrayList of Strings called students, change every element that starts with a "J" to now store the String "Sue". Be sure to return the ArrayList. toSue(["Biff"]) → ["Biff"] toSue(["Josh", "John"]) → ["Sue", "Sue"] toSue(["Biff", "Joe", "Zed"]) → ["Biff", "Sue", "Zed"] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 101
Copyright Nick Parlante 2017 - privacy