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

    Mar 28, 2025 · Arrays in Java are one of the most fundamental data structures that allow us to store multiple values of the same type in a single variable. They are useful for storing and managing collections of data. Arrays in Java are objects, which makes them work differently from arrays in C / C++ in terms of memory management.

  2. Array Data Structure Guide - GeeksforGeeks

    Apr 13, 2025 · In this article, we introduce array, implementation in different popular languages, its basic operations and commonly seen problems / interview questions. An array stores items (in case of C/C++ and Java Primitive Arrays) or their references (in case of Python, JS, Java Non-Primitive) at contiguous

  3. Java: Drawing graphics from an array - Stack Overflow

    Jan 14, 2015 · I'm working on my first java game for a school project, and I'm having some problems drawing the graphics based on information in an array. What I'm basically trying to do is to create a 2D array (matrix) which will store all the …

  4. How to represent an attribute's data type as an array of objects on ...

    Dec 13, 2014 · Which is the right way to show that an attribute's data type is an array of objects? I have found two different versions online: - listOfRegistered : Employee[0..*] getRegisteredList() : Employee[0..*]

  5. Java Arrays - W3Schools

    Java Arrays. Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value. To declare an array, define the variable type with square brackets:

  6. java - How to illustrate array lists into sequence diagram?

    May 24, 2018 · I'm trying to understand the above code in order to illustrate it in a sequence diagram, but I'm having some trouble understanding some of it, particularly this part: Enrolment enrolment = null; for (Enrolment e : enrolments) { CourseOffering offering = e.getOffering(); if (offering.getLecturer().equals(lecturer) && . enrolment = e; break;

  7. Week 4 & 5 – Arrays, Array Lists, UML – Computer Grammar

    Arrays. Created to form a large amount of uniform data; Arrays are Mutable, but they length cannot be changed; The method to create an Array looks like the following: int[] a= {1, 2, 3, 4, 5}; Java basically creates large box of 5 sub boxes and …

  8. One Dimensional Array in Java - GeeksforGeeks

    May 15, 2024 · Here is the Java program that demonstrate the implementation of the one-dimensional array and it performs the basic operations like initializing array, accessing elements, inserting elements, deleting elements, searching for elements and sorting elements:

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

    The following program, ArrayDemo, creates an array of integers, puts some values in the array, and prints each value to standard output. public static void main(String[] args) { // declares an array of integers. int[] anArray; // allocates memory for 10 integers. anArray = new int[10]; // initialize first element. anArray[0] = 100;

  10. 10 Examples of Array Data Structure in Java | Java67

    If you have difficulty with visualizing the 2D array in Java, here is a diagram to remember it.

Refresh