Skip to content

printing all substring

Swapnil Gupta edited this page Dec 14, 2022 · 1 revision

` public static void printSubstring(String str){ for(int s=0; s<str.length(); s++){ for(int e=s+1; e<str.length; e++){ sout(str.substring(s,e);

} }

`

Clone this wiki locally