Nested Loop
noun
say it: “NEST-ed LOOP” /ˈnɛstɪd lup/
A loop inside another loop, where the inner loop runs all the way through for each pass of the outer one.
What is Nested Loop in Java?
Nested Loop — A loop placed inside another loop.
class Theater {
int[][] seats = {
{1, 2},
{3, 4}
};
}
In a sentence
- “I printed a multiplication table with a nested loop: one loop for the rows and one inside it for the columns.”
Level: Apprentice · More Java terms at this level
Updated