My last two lines of the code are giving me wrong answers
Wrong Outputs in last two lines
public static void printSS(String str) { for (int si = 0; si <= str.length() - 1; si++) { for (int ei = si + 1; si <= str.length(); ei++) { String ss = str.substring(si, ei); System.out.println(ss); } } }
I dont know why it isnt sharing my code soo here it is
please go to ide.codingblocks.com
paste your code there
press ctrl+s and save
share the updated url with me here
save karne k baad url generate hi ni karra usme