how to get the current date of the year java code example
Example: java get current year
import java.util.Calendar;
int year = Calendar.getInstance().get(Calendar.YEAR);
import java.util.Calendar;
int year = Calendar.getInstance().get(Calendar.YEAR);