Since it is a static method, you may call it this way:
String [] result = classname.compareDOB( students );
where:
students
is an arary of student
objects.classname
is a placeholder for the actual class implementing the compareDOB
method (you didn't state which class is actually implementing it).