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

 

tmhscs@gmail.com strings > string_combineStringArray
prev  |  next  |  chance

Given a String array where each element is one word, recombine them into a single String and place spaces between the words. Make sure you don't have a space after the last word.


string_combineStringArray(["Hello", "students!"]) → "Hello students!"
string_combineStringArray(["Combine", "the", "Strings!"]) → "Combine the Strings!"
string_combineStringArray(["Use", "a", "for", "loop!"]) → "Use a for loop!"

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

public String string_combineStringArray(String[] words) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy