about | help | code help+videos | done | prefs |
Write a method that determines if the string 'orig' ends with the string 'target'. If 'orig' ends with 'target' return true, otherwise return false. The only string methods you are allowed to use are: .length, .substring, .charAt, and .equals. You do not have to use all of these methods, but you can if you need to. Look at the test data for examples. test2022_11_03_APP1SLHL_foundInBack("", "") → true test2022_11_03_APP1SLHL_foundInBack("", "nothing") → false test2022_11_03_APP1SLHL_foundInBack("nothing", "") → 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
Difficulty: 230
Copyright Nick Parlante 2017 - privacy