In Java programming language Please write code for the 6 methods below: Assume that Student class…

In Java programming language
Please write code for the 6 methods below:
Assume that Student class has name, age, gpa, and major,
constructor to initialize all data, method toString() to return
string reresentation of student objects, getter methods to get age,
major, and gpa, setter method to set age to given input, and method
isHonors that returns boolean value true for honors students and
false otherwise.
1) Write a method that accepts an array of student objects, and
n, the number of students stored in this array and returns
ArrayList of honors students.
public ArrayList honorsStudents(Student[] list, int n)
{
}
2) Write a method that accepts an array of student objects, and
n, the number of students stored in this array and returns count of
honors students.
public int countHonors(Student[] list, int n)
3) Write a method that accepts an array of student objects, and
n, the number of students stored in this array and prints all
honors students.
public void printHonors(Student[] list, int n)
4) Write a method that accepts an array of student objects, and
n, the number of students stored in this array and returns student
with highest gpa. In case of multiple students with same highest
gpa return first such student.
public int countHonors(Student[] list, int n)
5) Write a method that accepts an array of student objects, and
n, the number of students stored in this array and increases the
age of each student object by one.
public void increaseStudentAge(Student[] list, int n)
6) Write a method that accepts an array of student objects, and
n, the number of students stored in this array and given target
student object. Method returns index where target student object
was found in the array if target was found. In case of uncucessful
search method returns -1 .
public int search(Student[] list, int n, Student target)