Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class NestedLoop
- {
- public static void main(String[] args)
- {
- for(int i = 0; i <= 3; i++)
- {
- for(int j = 0; j <= 2; j++)
- {
- System.out.println(i + " " + j);
- System.out.println("---end of inner loop iteration---");
- }
- System.out.println("---end of outer loop iteration---");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement