about | help | code help+videos | done | prefs |
hasHappyEnding
Given a string, return true if "happy" appears at index length-5 in the string, such as with "xhappy" or "xxxhappy" but not "happyxxx". The string may be any length, including 0. Note: use .equals() to compare 2 strings. hasHappyEnding("happyxxx") → false hasHappyEnding("happy") → true hasHappyEnding("xxxhappy") → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy