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

 

abraskin@mbusd.org 2016_student_creations_01 > countTags
prev  |  next  |  chance

Andy is trying to send a message to Lindy through his old phone. However, only 10 words can fit on the text message.
Write a method that tells Andy whether his message is too long or just right.
If his message is too long, the phone will pop up with an "ERROR. Message too long." when Andy tries to click send.
If his message fits in the text box, the phone will pop up with "SENT." when Andy clicks send.


countTags("Hello Lindy.") → "ERROR. Message too long."
countTags("Hi!") → "SENT."
countTags("How is your day?") → "ERROR. Message too long."

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

public String countTags(String s) { }

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

Copyright Nick Parlante 2017 - privacy