Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Nested Loop
- public class NestedLoop{
- public static void main(String[] args){
- int[][] myComplexArray = {{5,2,1,3},{3,9,8,9},{5,7,12,7}};
- for(int[] mySimpleArray : myComplexArray) {
- for(int i=0; i<mySimpleArray.length; i++) {
- System.out.print(mySimpleArray[i]+"\t");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement