From 7d4af339a785a5752a64c050d8bd4271ccee021b Mon Sep 17 00:00:00 2001 From: CyberCore1010 <39372030+CyberCore1010@users.noreply.github.com> Date: Fri, 23 Nov 2018 04:25:44 +0000 Subject: [PATCH] Added a useful tip on 3D arrays (#23184) --- guide/english/java/arrays/index.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guide/english/java/arrays/index.md b/guide/english/java/arrays/index.md index 24a6c58e0f..58a217be7a 100644 --- a/guide/english/java/arrays/index.md +++ b/guide/english/java/arrays/index.md @@ -158,7 +158,10 @@ Similarly a 3D array can also be made. It can be visualized as a cuboid instead int a=2, b=3, c=4; int[][][] a=new int[a][b][c]; ``` -In a similar manner, one can declare an array of as many dimensions as desired, although visualizing an array of more than 3 dimensions is difficult. + +In a similar manner, one can declare an array of as many dimensions as desired, although visualizing an array of more than 3 dimensions is difficult. + +Tip: Arrays like this can be quite confusing, especially to beginners, so if you are planning to use this, be prepared to make a visual representation either in your head or on pen and paper. ### Jagged Arrays Jagged arrays are multi-dimensional arrays that have a set number of rows but a varying number of columns. Jagged arrays are used to conserve memory use of the array. Here is an example: