public class Clock{ int H,M,S; void SetTime(int h,int m,int s){ H=h;M=m;S=s; } void showTime(){ System.out.println(H+"."+M+"."+S); } public static void main(String[] args){ Clock test=new Clock(); test.SetTime(10,10,10); test.showTime(); } }