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


Warmup-2 > altPairs
prev  |  next  |  chance

Given a string, return a string made of the chars at indexes 0,1, 4,5, 8,9 ... so "kittens" yields "kien".

altPairs("kitten") → "kien"
altPairs("Chocolate") → "Chole"
altPairs("CodingHorror") → "Congrr"

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

public String altPairs(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: 233.0

Copyright Nick Parlante 2017 - privacy