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

 

soweigel@smsd.org ap-comp-sci > stringDisect
prev  |  next  |  chance

Create an array of strings by disecting each word into pairs of letters. If a single letter is left, add just that letter to the array. Return the array.


stringDisect("Geometry") → ["Ge", "om", "et", "ry"]
stringDisect("SM South Raiders") → ["SM", " S", "ou", "th", " R", "ai", "de", "rs"]
stringDisect("section") → ["se", "ct", "io", "n"]

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

public String[] stringDisect(String word) }

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: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy