About 12,900,000 results
Open links in new tab
  1. How to Create Array of Objects in Java? - GeeksforGeeks

    Jan 4, 2025 · In the below example, we will demonstrate how to create an array of Student objects and initialize them with different values. Then, we will display the details of each …

  2. Array of Student objects java - Stack Overflow

    Write an application that uses an array of type student of size 20. The program prompts the user for how many students are in the class and then allows them to enter the students and their …

  3. java - Creating an array of students based on user input - Stack Overflow

    I'm trying to create an array of math students, science students, and computer students based on the user input. So basically the user should choose what student they want to add and then …

  4. Generate array of students (Java) - Stack Overflow

    You should create your student class with all instance variables, a constructor including all variables, a preferably getters and setters for every variable. Then, from your main (testing …

  5. Arrays in Java - GeeksforGeeks

    Mar 28, 2025 · Example: Here we are taking a student class and creating an array of Student with five Student objects stored in the array. The Student objects have to be instantiated using the …

  6. Student details using an array of objects: Java Exercise

    Aug 18, 2024 · You’ll learn to implement a program for Student details using an array of objects in Java. EXERCISE: Create an array of objects of the Student class, of size 3. The Student class …

  7. How to Create and Use an Array of Objects in Java?

    In Java, an array of objects allows you to store multiple instances of a class within a single data structure. This is particularly useful for organizing and managing collections of related objects, …

  8. How to Create Arrays of Objects in Java - Scientech Easy

    Feb 12, 2025 · Creating an array of Student objects and assigning new Student objects to the array elements can also be done like this: Student[ ] st = new Student[ ] { new Student("John", …

  9. How to create an array of objects in Java? - Blog - Silicon Cloud

    In Java, object arrays can be created by following these steps: First, you need to define a class to represent objects in an array. For example, if we want to create an array to store student …

  10. Creating a student arraylist to add students to course class Java

    Feb 21, 2017 · List<Student> students = new ArrayList<Student>(); Student foo = new Student(23, "Foo", 22); students.add(foo); // This is how you add to a List (in this case a List of …

  11. Some results have been removed
Refresh