Answers for "java 11 get current year"

4

java get current year

import java.util.Calendar;

int year = Calendar.getInstance().get(Calendar.YEAR);
Posted by: Guest on November-06-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language