CRX-String Q Substrings

I have understood the concept in the video but I happened to notice an interesting thing that printSS function is declared inside of printChars function and we are directly calling the inner function, printSS from main method. Can you please explain this functionaly? As per my understanding, the method should be local to the function in which we are declaring it just like the variables, but thats not the case here.

actually printSS is not in printChars method.

pls see the braces

actaully printChars method is closed,

a button is there in eclipse where no is written in vertical direction which shows the no lines of code
there is button (-) to directly close a method.

1 Like