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

 

LOOPs_everyNth


Return a string made of every n-th character of s starting at index 0. If n <= 0, return "". - everyNth("abcdefg", 2) → "aceg" - everyNth("Hello, World!", 3) → "Hl r!" - everyNth("abc", 5) → "a"


LOOPs_everyNth("abcdefg", 2) → "aceg"
LOOPs_everyNth("Hello, World!", 3) → "Hl r!"
LOOPs_everyNth("abc", 5) → "a"

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

public String LOOPs_everyNth(String s, int n) { }

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

Copyright Nick Parlante 2017 - privacy