About 202,000 results
Open links in new tab
  1. Return position of value in a 2D array, Java - Stack Overflow

    May 8, 2025 · I'm trying to return the position of a specific value in a 2D array. I have a double array [300] [300]. All values contained in it are 0 apart from one which is 255. How do I write a …

  2. Java Multi-Dimensional Arrays - GeeksforGeeks

    Apr 23, 2025 · Two-dimensional array is the simplest form of a multidimensional array. A 2-D array can be seen as an array storing multiple 1-D array for easier understanding. Syntax …

  3. Learn Java: Two-Dimensional Arrays Cheatsheet | Codecademy

    In Java, 2D arrays are stored as arrays of arrays. Therefore, the way 2D arrays are declared is similar 1D array objects. 2D arrays are declared by defining a data type followed by two sets of …

  4. Java Matrix - 2D Arrays - CodeGym

    Arrays.toString () method in Java, converts every parameter passed to it as a single array and uses its built in method to print it. We’ve created a dummy String 2D array to play around.

  5. Java Multi-Dimensional Arrays - W3Schools

    Multidimensional arrays are useful when you want to store data as a tabular form, like a table with rows and columns. To create a two-dimensional array, add each array within its own set of …

  6. Java - Find row, column position of a number in a 2D array

    May 8, 2025 · Write a Java program to design an algorithm that uses binary search on rows and columns to locate a target in a 2D sorted array. Write a Java program to locate a specified …

  7. Find a location of a value on a 2d array in java - Stack Overflow

    Feb 13, 2014 · I have found the max value of occurrences, and need to move to a cell left of the value in the 2d array to print the value of number according to the occurrences. Any help will …

  8. Find the position of the given row in a 2-D array - GeeksforGeeks

    Dec 7, 2022 · Below are the steps to find a row in the matrix using binary search, Compare arr [] with the middle row. If arr [] matches entirely with the middle row, we return the mid index.

  9. Java - 2D Array Examples - Dot Net Perls

    Oct 1, 2024 · In Java the syntax of 2D arrays is often complex. Two integer indexes locate a point in a 2D array. And with initializers, we quickly create these arrays. 2D syntax notes. We can …

  10. Java Matrix Example - Java Code Geeks

    Jan 13, 2020 · In this article, we will discuss the Matrix in Java. We will cover what matrix are, how to create a Java matrix, how to traverse a matrix, and some of the common operations on …

  11. Some results have been removed
Refresh