Calendar - funky results

For whatever reason, when I try the following:

import java.util.Calendar;

public class Test

{

public static void main(String[] args)

{

Calendar c = Calendar.getInstance();

System.out.println("c.YEAR: " + c.YEAR + " Calendar.YEAR: " + Calendar.YEAR);

}

}

It prints out c.YEAR: 1 Calendar.YEAR: 1. I tried the month as well and it is printing out as 2, and the other fields are producing the same bogus results.

I tried to run the tzupdate to see if that'd help and it didn't. I am running on Windows XP with JRE 1.6.0. Anybody?

[601 byte] By [tsmyrnioa] at [2007-11-26 23:54:43]
# 1
You're simply printing out the value of the constant. You want:c.get(Calendar.YEAR); http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html
KelVarnsona at 2007-7-11 15:37:32 > top of Java-index,Java Essentials,Java Programming...
# 2
Calendar.YEAR is a static int the Calendar class uses to indicate the year field. It's not meant to represent an actual year. c.YEAR is the same as Calendar.YEAR. You call access static members of a class by using the class name (Calendar) or by an instance (c).
hunter9000a at 2007-7-11 15:37:32 > top of Java-index,Java Essentials,Java Programming...