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

 

pais@kinetigram.com > S116_seeColor
prev  |  next  |  chance

APCS String 1, Problem 6. Given a string, if the string begins with "red" or "blue" return that color string, otherwise return the empty string.


S116_seeColor("redxx") → "red"
S116_seeColor("xxred") → ""
S116_seeColor("blueTimes") → "blue"

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

public String S116_seeColor(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: 100

Copyright Nick Parlante 2017 - privacy