How can you create a Immutable Array??
Here's a piece of code from this lab I'm working on showing only one of the 3 classes: There are 3 classes, I won't write the codes for all of them: 1.Student.java class 2.Course.java class 3.CS210.java class(it has the main method) //Student.java class public class Student { private String Id; private String FirstName; private String LastName; private Course[] courses=new Course[1]; public Student(String Id,String FirstName,String LastName,Course[] course){ this.Id=Id; this.FirstName=FirstName; this.LastName=LastName; Course[] c=new Course[course.length]; c=course; this.courses=c; } public String getId(){ return Id; } public String getFirstName(){ return FirstName; } public String getLastName(){ return LastName; } public Course[] getCourseList(){ return courses; } } // the problem here is the ARRAY? Coz it's simple to make the other stuff in theclassimmutablebyfollowingtherules WHAT should I do to the method Above: public Course[] getCourseList?