Program to find all substrings of a string in Java
import java.util.Scanner; class SubstringsOfAString { public static void main(String args[]) { String string, sub; int i, c, length; Scanner in = new Scanner(System.in); System.out.println(“Enter a string to print it’s all … Read More