T
T
TreShk02018-12-04 14:26:43
Java
TreShk0, 2018-12-04 14:26:43

How to create a multidimensional array of n volume in Java?

How to create a multidimensional array of n volume in Java, keyboard input. That is, an array of type Array[][][] (and such [] n pieces)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Shishkin, 2018-12-04
@compiler

It is possible to try to make a recursion, but it will be a rigid crutch.
What is the purpose of such logic?

I
Igor Aleksandrovich, 2018-12-04
@tyanigor

Everything is just int[][] a;
a[0][0] = 1;
...
A two-dimensional array. And so any dimension.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question