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

 

removeApple


Create a method public String removeApple(String str) that will remove the first ‘apple’ that is found from str. So if str is “I love applesauce”, it would return“I love sauce”


removeApple("i love applesauce") → "i love sauce"
removeApple("She likes applepie") → "She likes pie"
removeApple("I have an tree in my yard") → "I have an tree in my yard"

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

public String removeApple(String str) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

Copyright Nick Parlante 2017 - privacy