Why do you think the value of j is changed from 0? Add some println statements to see what is happening.
What is in studentList? Is the code in the loop ever executed?
What is the value of j in...