Curso de Java - Aula 53 - Arrays Multidimensionais - eXcript

#java #eXcript Multidimensional arrays are data structures that have two or more dimensions. In short, an array with a single dimension functions internally like a multidimensional array. The difference lies in the number of indices each element of our structure will have as an identifier. Below, we have the definition of a one-dimensional array, and then we define a second array, but with two dimensions. `int[] lista = new int[3];` `int[][] duas_dimensoes = new int[8][8];` Above, in the second declaration, we have a two-dimensional array, and each dimension has eight elements. Therefore, we have an 8x8 structure, capable of storing 64 distinct integers. It is important to note that all integer variables are initialized, by language definition, with the value zero, unless we make any assignment at the time of declaration. Therefore, in an Array structure it will be no different, because each position in our Array is in fact an integer variable and thus, its initialization value will be equal to 0. Java Course: http://excript.com.br/curso-de-java.html QUESTIONS? https://goo.gl/ApYFMC Java Course Playlist:    • Curso de Java   WEBSITE: http://excript.com.br/ FACEBOOK:   / excript   MY PUBLIC PROFILE: https://goo.gl/4SPRVf EMAIL: [email protected]