101,000 results
Open links in new tab
  1. Arrays in Java - GeeksforGeeks

    Oct 8, 2026 · In Java, an array is declared by specifying the data type, followed by the array name, and empty square brackets []. …

  2. Java Arrays - W3Schools

    Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value. To declare an …

  3. How do I declare and initialize an array in Java? - Stack Overflow

    Jul 29, 2009 · You can either use array declaration or array literal (but only when you declare and affect the variable right away, array …

  4. How to Declare an Array in Java? - GeeksforGeeks

    Feb 28, 2025 · Understanding how to declare an array in Java is very important. In this article, we will cover everything about array …

  5. Java Array (With Examples) - Programiz

    In this tutorial, we will learn to work with Java arrays. We will learn to declare, initialize, and access array elements with the help of …

  6. Java - Arrays - Online Tutorials Library

    Instead of declaring individual variables, such as number0, number1, ..., and number99, you declare one array variable such as …

  7. How to Create an Array in Java – Array Declaration Example

    Mar 16, 2023 · In this article, we will provide a step-by-step guide on how to create an array in Java, including how to initialize or …

  8. Initializing Arrays in Java - Baeldung

    Dec 16, 2024 · In this article, we explored different ways of initializing arrays in Java. Also, we learned how to declare and allocate …

  9. Tutorial: Arrays in Java | CodeHS

    To create an array in Java, you must first know what type of data you want to store and how many elements the array will hold. In the …

  10. Arrays (The Java™ Tutorials > Learning the Java Language - Oracle

    Like declarations for variables of other types, an array declaration has two components: the array's type and the array's name. An …

  11. Some results have been removed