Clock
package com.hanqi.test;
public class Clock {
int hour,minute,second;
Clock(int h,int m,int s)
{
hour=h;minute=m;second=s;
}
void Show()
{
System.out.println(hour+":"+minute+":"+second);
}
}
主类
package com.hanqi.test;
public class Clock {
int hour,minute,second;
Clock(int h,int m,int s)
{
hour=h;minute=m;second=s;
}
void Show()
{
System.out.println(hour+":"+minute+":"+second);
}
}