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

 

jebbert@volusia.k12.fl.us > poolWordInsert
prev  |  next  |  chance

Write a method that interlaces the word "pool" into the input string. The string to return will be in the form "xpxoxoxlxpxoxoxlxpxoxoxl" of the appropriate length where all of the x-es are characters from the original string in the original order.


poolWordInsert("Watch out") → "Wpaotoclhp oooultp"
poolWordInsert("Jump") → "Jpuomopl"
poolWordInsert("") → ""

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

public String poolWordInsert(String str) { }

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: 290

Copyright Nick Parlante 2017 - privacy