id/email
password
forgot password
about | help | done | prefs | create account
JavaBat java practice problems

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         

See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  JavaBat  >  Warmup-2

Forget It! -- delete my code for this problem 233.0

Copyright Nick Parlante 2006-09 - privacy