About 2,180,000 results
Open links in new tab
  1. Java Multi-Dimensional Arrays - GeeksforGeeks

    Mar 14, 2026 · A multi-dimensional array in Java is an array of arrays that allows data to be stored in tabular form such as rows and columns. It is commonly used to represent matrices, tables, and grids …

  2. Java Pattern Programs - Learn How to Print Pattern in Java

    Jan 19, 2026 · In many Java interviews Star, number, and character patterns are the most asked Java Pattern Programs to check your logical and coding skills. Pattern programs in Java help you to …

  3. Java Multidimensional Array (2d and 3d Array) - Programiz

    In this tutorial, we will learn about the Java multidimensional array using 2-dimensional arrays and 3-dimensional arrays with the help of examples. A multidimensional array is an array of arrays

  4. Prefix Sum of Matrix (Or 2D Array) - GeeksforGeeks

    Jan 17, 2026 · The prefix sum of a matrix (or 2D array) is a powerful technique used to efficiently compute the sum of elements in a submatrix. Instead of recalculating the sum from scratch every …

  5. Java Multi-Dimensional Arrays - W3Schools

    Multidimensional Arrays A multidimensional array is an array that contains other arrays. You can use it to store data in a table with rows and columns. To create a two-dimensional array, write each row …

  6. Print a 2D Array or Matrix in Java - GeeksforGeeks

    Mar 24, 2025 · Prerequisites: Arrays in Java, Array Declarations in Java (Single and Multidimensional) Java Program to Print the 2D Array We can find the number of rows in a matrix mat [] [] using …

  7. Java two-dimensional array filled with pattern - Stack Overflow

    Aug 27, 2018 · how can I fill two-dimensional array of given "size" to get this output: N=1 000 010 000 N=2 0000 0110 0110 0000 N=3 00000 01110 01210 01110 0...

  8. Java Array Programs - GeeksforGeeks

    Oct 2, 2025 · An array is a data structure consisting of a collection of elements (values or variables), of the same memory size, each identified by at least one array index or key.

  9. 2D Array Spiral Matrix Pattern with different rows and columns

    Dec 4, 2023 · I have to implement 2D Array in Spiral Matrix Pattern, but the requirement is to get the rows and columns from user input. Using Oracle documents i got to the point that the program result …

  10. java - 2d Array in Spiral Order - Stack Overflow

    I'm trying to fill an array in spiral order. So far, I can print the array in spiral order, but is there a way to modify the array so that i can fill it in spiral order and then just print the arra...