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

 

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

Write a method that accepts a string and a positive integer 'n'. Return a string made up of every 'n'th letter in the original string starting with the 1st letter.


quizSLAPHL_P1("open the pod bay doors, Hal", 5) → "otoyra"
quizSLAPHL_P1("Will, quite complaining", 3) → "Wlqtcpin"
quizSLAPHL_P1("Eight billion ants can't be wrong", 10) → "Eiao"

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

public String quizSLAPHL_P1(String str, int mix) { }

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

Copyright Nick Parlante 2017 - privacy