Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static Integer[] comboanionacimiento() { Integer[] res = new Integer[121]; for (int i = (Calendar.getInstance().get(Calendar.YEAR) - 120), j = 0; i <= (Calendar.getInstance() .get(Calendar.YEAR)); i++, j++) { res[j] = i; } return res; } }