About 219,000 results
Open links in new tab
  1. Syntax for creating a two-dimensional array in Java

    Jan 17, 2021 · In Java, a two-dimensional array can be declared as the same as a one-dimensional array. In a one-dimensional array you can write like. int array[] = new int[5]; where …

  2. java - How to insert values in two dimensional array …

    May 25, 2012 · Think about it as array of array. If you do this str[x][y], then there is array of length x where each element in turn contains array of length y. In java its not necessary for second …

  3. Initialising a multidimensional array in Java - Stack Overflow

    Dec 4, 2013 · Multidimensional Array in Java Returning a multidimensional array. Java does not truely support multidimensional arrays. In Java, a two-dimensional array is simply an array of …

  4. java - Convert a 2D array into a 1D array - Stack Overflow

    Jan 20, 2012 · 1D array to 2D array in java. 0. Converting 2D array to 1D Array without using ArrayList. Hot Network ...

  5. Getting the array length of a 2D array in Java - Stack Overflow

    Java 2D array length Hot Network Questions Seek Mathematica implementations of Gaussian q-distribution, q-exponential distribution, q-Weibull distribution, Tsallis q-Gaussian distribution

  6. java - For each loop using 2D array - Stack Overflow

    Nov 14, 2012 · Since your uu is an array of array. So, when you iterate over it, you will first get an array, and then you can iterate over that array to get individual elements. So, your outer loop …

  7. Java Input scanner to array multidimensional - Stack Overflow

    I want to display an array of input that I input. and in print automatically. I want to display the array of input values that I input. and will be printed automatically. my code like this : pu...

  8. java - Comparing 2D arrays - Stack Overflow

    Dec 1, 2013 · Im trying to compare two 2D arrays by using this. But I keep getting "Arrays are not the same." even when they are the same. int i; int j = 0; int k; int l; List<Integer>

  9. how to create dynamic two dimensional array in java?

    I want to create a two dimensional array dynamically. I know the number of columns. But the number of rows are being changed dynamically. I tried the array list, but it stores the value in …

  10. java - Iterate through 2 dimensional array - Stack Overflow

    Sep 12, 2014 · These functions should work. // First, cache your array dimensions so you don't have to // access them during each iteration of your for loops. int rowLength = array.length, // …

Refresh