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

 

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

Write a method called "missingCats" that accepts a string as an input parameter. That string will be at least 4 characters long and will not contain any upper-case letters. If the string starts with "cats" return the string without the "cats" at the beginning. Otherwise return the string unchanged.


missingCats("cats run fast") → " run fast"
missingCats("cats") → ""
missingCats("cats are dumb") → " are dumb"

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

public String missingCats(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: 140

Copyright Nick Parlante 2017 - privacy