about | help | code help+videos | done | prefs |
Write a method that returns a string that is made from every-other character in the input parameter string. For example, if the input parameter string is "sailboat" you would return "siba". Look at the test data for additional examples. The ONLY string methods you are allowed to use are .length, .equals, .charAt, and .substring. You do not need to use all of these. You may also use all of the normal string operations such as concatenation. nov20_2015_APSLHL_everyOtherLetter("This is a test") → "Ti sats" nov20_2015_APSLHL_everyOtherLetter("abcdefghijk") → "acegik" nov20_2015_APSLHL_everyOtherLetter("X") → "X" ...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: 280
Copyright Nick Parlante 2017 - privacy