编写JAVA程序,求解下列数学题

假设某高职院校2019年有1.6万名学生,按照每年学生数增长5.16%的比例进行扩招,按照这种增长速度,哪一年该校学生人数可达到2万人?

public class test01 {

public static void main(String[] args) {
    int student = 16000;
    //定义年份
    int year;
    for (year=1; student<20000; year++) {
            student += student * 0.0516;
    }
    //输出多少年后可达2万学生
    System.out.println(year);
}

}