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

 

jebbert@volusia.k12.fl.us > quiz2023_09_15_P1SLHL_everyOtherChar
prev  |  next  |  chance

Write a method that returns a string made up of every-other character from 'str' starting with the first character. Look at the test data for examples.


quiz2023_09_15_P1SLHL_everyOtherChar("XY") → "X"
quiz2023_09_15_P1SLHL_everyOtherChar("XYZ") → "XZ"
quiz2023_09_15_P1SLHL_everyOtherChar("ABCD") → "AC"

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

public String quiz2023_09_15_P1SLHL_everyOtherChar(String str) { }

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

Copyright Nick Parlante 2017 - privacy