Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

How to initialize a 3d array in Java?

// test is a 3d array
int[][][] test = {
        {
          {1, -2, 3}, 
          {2, 3, 4}
        }, 
        { 
          {-4, -5, 6, 9}, 
          {1}, 
          {2, 3}
        } 
};
 
PREVIOUS NEXT
Tagged: #How #initialize #array
ADD COMMENT
Topic
Name
8+2 =