Advertisement
Guest User

Untitled

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