有人知道为什么java.util.Caldendar中的MINUTE方法返回错误的分钟?
import java.util.Calendar;
public class Clock
{
// Instance fields
private Calendar time;
/**
* Constructor. Starts the clock at the current operating system time
*/
public Clock()
{
System.out.println(this.time.HOUR_OF_DAY+":"+this.time.MINUTE);
}
}
Run Code Online (Sandbox Code Playgroud)