Q: Problem with setDate method with Calendar obj.setDate(5,25,00);
    
public void setDate(int month, int date1, int year) {
    cal.set(Calendar.MONTH,--month);
    cal.set(Calendar.DATE, date1);
    cal.set(Calendar.YEAR, year);
}

When I try to run the code, the year is being upgrade to show as 01, and not showing as 00 as it should. Same problem with "month" but I did --. Can someone point out what is happening here? Thank you.

A: Month value is 0-based, i.e. 0 for January so this is expected.
And what do you mean by year 00? There is no "zero" year in Gregorian calendar, before year 1 AD there was year 1 BC. If you mean 1900 or 2000 you should use just that obj.setDate(5, 25, 2000).
See also: Year 0000 in java
