Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › STRING BASICS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Use nested loops over the string "abc". For each start and exclusive end, print the substring on its own line using Java substring(start, end), producing the six non-empty substrings in generation order.
OUTPUT
Samplea ab abc b bc c
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.