about | help | code help+videos | done | prefs |
Given an input String, return a String containing the first 5 characters of the input. If the input has less than five characters return "ERROR" instead. HINT Use substring() and also length()apcsaStringsGimmeMaybeFirstFive("Howdy do") → "Howdy" apcsaStringsGimmeMaybeFirstFive("Hello") → "Hello" apcsaStringsGimmeMaybeFirstFive("Hel") → "ERROR" ...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: 130
Copyright Nick Parlante 2017 - privacy