
public class HelloWorld{
public static void main(String []args)throws IOException {
try {
for(int i=0;i<24;i++)
{
for(int j=0;j<60;j++)
{
for(int k=0;k<60;k++)
{
clrscr();
System.out.print(i+":"+j+":"+k);
Thread.currentThread().sleep(1000);
/* if(kbhit())
exit(0);*/
}
}
}
}

hi friend,
you have missed the catch/finally block
There must be a catch/finally block used with the try
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.