about | help | code help+videos | done | prefs |
Given a string str, two int values, and a boolean value, write a method that works similar to the String.substring method if the given boolean value is true. getSubstring("abc", 0, 1, true) → "a" getSubstring("000111222", 0, 3, false) → "000111222" getSubstring("Hello", 0, 4, true) → "Hell" ...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