Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


venkatesh babu
error rectify
1 Answer(s)      a year and 8 months ago
Posted in : Java Beginners


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);*/
            } 
         }
      }
     }

Advertisement
View Answers

February 5, 2013 at 7:06 PM


hi friend,

you have missed the catch/finally block

There must be a catch/finally block used with the try



Related Tutorials/Questions & Answers:
error rectify
error rectify   public class HelloWorld{ public static void main(String []args)throws IOException { try { for(int i=0;i<24;i++) { for(int j=0
How to rectify "Bad version number in .class file" exception in Eclipse
How to rectify "Bad version number in .class file" exception in Eclipse  HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling
Advertisements
Error - Java Beginners
Error  How to rectify requested resource()not found . HTTp-404 error
error
error  while iam compiling iam getting expected error
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
error
error
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version. This type error also comes when java file
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5
error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner(System.in); int d,x,y; System.out.println("Enter the first number
error
"+it); } } this is my program i am getting an error saying cannot find symbol class string
Tamcat apache server error
The requested resource () is not available. Apache Tomcat/5.5.31 how to rectify the above error
error in servlet
error in servlet  while excuting the servlet program, it produce the error as "HTTP 404 not found". i couldnt rectify that error. can you help me to do so? Serv1.java import java.io.*; import javax.servlet.*; import
Compilation error. Hibernate code - Hibernate
) how to rectify that error in hibernate  Hi Friend, You have...Compilation error. Hibernate code   Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
data type used to store name.(getting an error)
data type used to store name.(getting an error)    Statement stm... getting an error like dis: "ename cannot be resolved to a variable" whats the problem in my code and how to rectify it. plzz help n thanx in adv
java compilation error - Java Beginners
java compilation error  HELLO SIR,I HAVE ASKED QUESTION AND I GOT REPLY FOR THAT ALSO BUT I AM GETING COMPILATION ERROR UNCHECKED OR UNSAFE OPERATION PLZ RECTIFY THIS. HOW TO READ ELEMENTS FROM TWO ARRAYLIST AND PRINT
PHP Error Handling Functions
a well defined error message that helps you to find and rectify error easily...Though every programming language offers default error handling methods. You can also write your own error handling functions in PHP. There is a bit
error message
error message  Sir i make one form facility with insert,update,delete.i want to error msg if any type of the data is missing and display in error msg which of the data is misssing
Permgen error
Permgen error  hi how can i solve permgen error
installation error
installation error  hi, m getting an error like " semicolon found in the selected path".how to resolve this error? during installation of jdk 1.6
error log
error log  hi my requirement is validate xml and xsd in java.If there is an errors then i will log error and store into error table. so plz if any one knows send code urgent. error table details-------------- Table
Advertisements
 

 

 

DMCA.com