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

 

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

Write a method that returns 'true' if 'targetWord' can be made from the letters in the phrase "The Mazda Miata is a fun car to drive", or 'false' otherwise. Letters in the phrase "The Mazda Miata is a fun car to drive" may be used any number of times. For example, if 'targetWord' was "aardvark" you would return 'false' because there is no "k" in the phrase. However, "heart" would return 'true' because those letters all appear in the phrase. Note that this is NOT case dependent.


test2021_03_11_HL_miataWords("kylenoseplease") → false
test2021_03_11_HL_miataWords("jacksonnoseplease") → false
test2021_03_11_HL_miataWords("frame") → true

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

public boolean test2021_03_11_HL_miataWords(String targetWord) { }

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

Copyright Nick Parlante 2017 - privacy