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

 

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

Given a string array "words", return the array but where every string inside the array has had its underscores replaced with spaces.


string_underscores(["Item_1", "Item_2", "Item_3"]) → ["Item 1", "Item 2", "Item 3"]
string_underscores(["A_B", "B_C"]) → ["A B", "B C"]
string_underscores(["_Computer_", "_Science_"]) → [" Computer ", " Science "]

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

public String[] string_underscores(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