I have a java method that searches for a Student Object by l
I have a java method that searches for a Student Object (by last name) in an Array. It works, but my problem is when I type a student\'s last name that\'s not in the array of Students, the program stops
Solution
Hey. There seems to be no error in your code as of now. Please provide the complete code including the Student class and if possible the screenshot of the error you\'re getting.
With respect to the function everything should work fine, unless you have a flaw in your Student class.

