Thread: can someone help me with "not a statment

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 can someone help me with "not a statment 
    Registered Member
    Join Date
    May 2009
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    well heres my method :
    Code:
        public boolean checkLog(String s, String s1)
        {
            BufferedReader bufferedreader = new BufferedReader(new FileReader((new StringBuilder()).append("config//").append(s).append(".txt").toString()));
            String s2 = null;
            do
            {
                if((s2 = bufferedreader.readLine()) == null)
                {
                    break MISSING_BLOCK_LABEL_108;
                }
            } 
    		while(!s1.equalsIgnoreCase(s2));
            return true;
            IOException ioexception;
    		ioexception;
            System.out.println("Critical error while checking for data!");
            System.out.println((new StringBuilder()).append(s).append(":").append(s1).toString());
            IOException.printStackTrace();
    		return false;
        }
    the error is :
    Code:
     server.java:240: not a statement
    ioexception;
    (its the IOException ioexception;
    ioexception; )


    can any1 help me
    Reply With Quote  
     

  2. #2  
    Renown Programmer

    Join Date
    Dec 2008
    Posts
    363
    Thanks given
    1
    Thanks received
    28
    Rep Power
    99
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2009
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    yes i know but how the hell fix it...
    Reply With Quote  
     

  4. #4  
    Renown Programmer

    Join Date
    Dec 2008
    Posts
    363
    Thanks given
    1
    Thanks received
    28
    Rep Power
    99
    Quote Originally Posted by pawelwoj View Post
    yes i know but how the hell fix it...
    If you actually read that, you would know.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    May 2009
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    im not asking wat is an exeption but why there is not a statement...... isnt it easier just to tell...
    Reply With Quote  
     

  6. #6  
    Donator

    Ecstasy's Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    5,031
    Thanks given
    324
    Thanks received
    596
    Rep Power
    843
    Make sure that

    import java.io.*; is at the top of your class.

    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    May 2009
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    there is.....

    This are my imports :

    Code:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    Reply With Quote  
     

  8. #8  
    Renown Programmer

    Join Date
    Dec 2008
    Posts
    363
    Thanks given
    1
    Thanks received
    28
    Rep Power
    99
    Quote Originally Posted by pawelwoj View Post
    there is.....

    This are my imports :

    Code:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    Learn how to write a "try catch block", and what the "return" statement means.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    May 2009
    Posts
    22
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    im new to java coding...friend gave me this source to ask my friends wats wrong
    so... can utell me how to use try-catch in this case?
    Reply With Quote  
     

  10. #10  
    Renown Programmer

    Join Date
    Dec 2008
    Posts
    363
    Thanks given
    1
    Thanks received
    28
    Rep Power
    99
    Quote Originally Posted by pawelwoj View Post
    im new to java coding...friend gave me this source to ask my friends wats wrong
    so... can utell me how to use try-catch in this case?
    No .
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •