Java-Updating Calendar

Updating Calendar The set( ) method is used to sets the values for the fields YEAR, MONTH, DAY_OF_MONTH, HOUR, MINUTE, and SECOND. Program Program Source import java.util.Calendar; public class Javaapp { public static void main(String[] args) { Calendar caldr = Calendar.getInstance(); int year = 2000; int month = 5; int dayOfMonth = 6; int hour = 12; int minute = 45; … Read more…