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

 

srp4379@lausd.net > hasCT
prev  |  next  |  chance

Given a String, return true if it contains a "c" that is followed by a "t". There may be 0, 1, 2 or 3 letters in between the "c" and the "t".


hasCT("ct") → true
hasCT("cat") → true
hasCT("cart") → true

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

public boolean hasCT(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: 2

Copyright Nick Parlante 2017 - privacy