SHARE
TWEET

Untitled

a guest Oct 15th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top