I have an array and inside its filled with marks for students. However I cannot display the array contents as I keep receiving a reference code or something. I am now trying to check each index in the array and compare it to the pass mark of 40. When I do use an if statement I can never print the [i] afterwards, all help would be appreciated.
public class Exammarks {
    public static void main(String[] args) {
        int i = 0;
        int [] studentmarks = new int[] {45,60,70,21,95,35,83,80,5,41,40,25};
        for(i=1;i < studentmarks.length; i++); {
                if (studentmarks[i] < 40)
                       System.out.println(studentmarks[i]);
        }
    }
}
 
     
     
     
    