string - Recursion and substrings in Java -
how create recursive method
getsubstrings("abc") which returns list of possible substrings of string e.g.
{ "a", "b", "c", "ab", "bc", "ac", "abc" }
the first step write downwards clear , verifiable spec function, , perchance avoid giving illustration output contradicts spec. without first step, can't proceed.
java string recursion substring
No comments:
Post a Comment