about | help | code help+videos | done | prefs |
Given a String str, return a one-character String containing the fifth character of the input. For this problem, some of the inputs will have less than five characters. If the input has less than five characters, return the entire input. HINTUse substring() with two parameters to do this, as well as the length() method. apcsaStringsGimmeFifth2("quick") → "k" apcsaStringsGimmeFifth2("hi") → "hi" apcsaStringsGimmeFifth2("Where are you?") → "e" ...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: 100
Copyright Nick Parlante 2017 - privacy