Getting rid of labels
Get rid of the labels in the isSubstringPresent method, but preserve its logic. The method returns true if substring is a substring of string, otherwise false. The code should not have break and continue statements.
The required statement
Insert a single statement (not a break statement) to the code in order to display a triangle of S's.
GO TO FULL VERSION