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

 

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

Write a method that accepts an original string and a target string. If the target string appears at the beginning of the original string, return the original string with the target string removed; otherwise just return the original string.


quizProg3P2("testing", "what a fun way to mess up") → "testing"
quizProg3P2("the end", "the en") → "d"
quizProg3P2("this is a test", "this") → " is a test"

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

public String quizProg3P2(String orig, String target) { }

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

Copyright Nick Parlante 2017 - privacy