public class Student { private int ID; private String Name; private double cgpa; public Student(int ID, String Name, double cgpa) { this.ID = ID; this.Name = Name; this.cgpa = cgpa; } public int getID() { return ID; } public void setID(int ID) { this.ID = ID; } public String getName() { return Name; } public void setName(String Name) { this.Name = Name; } public double getCgpa() { return cgpa; } public void setCgpa(double cgpa) { this.cgpa = cgpa; } @Override public String toString() { return "Student [ID=" + ID + ", Name=" + Name + ", CGPA=" + cgpa + "]"; } } import java.util.Vector; public class StudentVectorDemo { public static void main(String[] args) { Vector studentVector = new Vector<>(); // Creating 5 Student objects studentVector.add(new Student(1, "Alice", 3.6)); studentVector.add(new Student(2, "Bob", 3.4)); studentVector.add(new Student(3, "Charlie", 3.8)); studentVector.add(new Student(4, "David", 2.9)); studentVector.add(new Student(5, "Eve", 3.7)); // Displaying students with CGPA over 3.5 System.out.println("Students with CGPA over 3.5:"); for (Student student : studentVector) { if (student.getCgpa() > 3.5) { System.out.println(student); } } } }