Java Complete Tutorial Ep. 15 - Multidimensional Arrays

preview_player
Показать описание
In this episode of the Java Tutorial, I show you how to make multidimensional arrays in java. This also includes 3d arrays.
Like and subscribe!! 😍

Stay Connected and Updated!! 👁
More Videos coming soon.
Leave a comment for any future video suggestions.
Рекомендации по теме
Комментарии
Автор

9:20 In the for loop you should check for the amount of arrays and values like this: (This is a safe way)


int fallafel[][] = new int[4][];
fallafel[0] = new int[1];
fallafel[1] = new int[2];
fallafel[2] = new int[3];
fallafel[3] = new int[4];


for(int i = 0; i < fallafel.length; i++) {

for(int v = 0; v < fallafel[i].length; v++) {
+ ", ");
}
System.out.println();
}

PropzFx
Автор

9:15 For any other lazy learners like me, instead of typing out a new fallafel array each time you can just do a for loop:

for (int z = 0; z < 4; z++) {
y = y + 1;
fallafel[z] = new int[y];
}

owrller
Автор

Thanks so much for creating all those amazing tutorials! They help me so extremely much.

ijustleyxo
Автор

a fallafel is a bread wrap with some healthy goodness in there,
BUT
shawarma is better, way better.

deadshxll
Автор

I still don't understand what the blank system.out.println there was for

GreenArrow
visit shbcf.ru