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

 

crehwinkel@frhsd.com > splitStrings
prev  |  next  |  chance

Write a method called splitStrings that gets an array of Strings as an input parameter and returns a new array of Strings. The method splits every String in half and creates two Strings. For example splitStrings({"hello", "dog", ""}) would return the array {"he", "llo", "d", "og", "", ""}.


splitStrings(["hello", "dog", ""]) → ["he", "llo", "d", "og", "", ""]
splitStrings(["good", "AP"]) → ["go", "od", "A", "P"]
splitStrings(["summer!"]) → ["sum", "mer!"]

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

public String [] splitStrings(String [] arr) }

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

Copyright Nick Parlante 2017 - privacy