0
What are Nested Control Structures in Java?
Hi guys, so i need help about what Nested Control Structures is in Java, my programming prof. didn't gave me much info about it so i need help, and if possible please give me some examples. Thanks!
1 Resposta
+ 5
Hello Carl Salcedo
Your code is executed line by line. But sometimes it is necessary to skip lines or to repeat lines or to jump into a method...
That's what control structures are doing. They help you to control the "path" of execution.
Loops, if statements, switch statements...
Here you find a list:
https://www.baeldung.com/java-control-structures
Nested if statements or nested for loops come to my mind.
But I am not sure if a loop with an if statement counts or loops with break and continue...