about | help | code help+videos | done | prefs |
Write a method that returns a String containing a greeting based upon the name and status of a person. If the person's name is John and his status is "knight" then the greeting should be Sir John. Otherwise the greeting should just be the person's name. greetingBasedUpon("john", "knight") → "Sir john" greetingBasedUpon("john", "fool") → "john" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy