[Solved] Making a java program that gives the number of distinct substrings of a input [closed]


As this is homework, here is a guide.

  • Create a Set of String.
  • add each combination to the set.
  • get the size of the set.

solved Making a java program that gives the number of distinct substrings of a input [closed]