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

 

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

Write a method called witchMPHG that accepts a string input parameter. The string input parameter will not contain any uppercase letters. For almost all input parameters the method will simply return "NOT a witch.". However, if the input parameter is any of the following strings, return "a witch!" Here are the strings which should cause "a witch!" to be returned: "wood", "small rocks", "ducks", "churches".


witchMPHG("abcde") → "NOT a witch."
witchMPHG("ice") → "NOT a witch."
witchMPHG("small rocks") → "a witch!"

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

public String witchMPHG(String item) { }

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

Copyright Nick Parlante 2017 - privacy