complex thinking on simple java challenge, how can i fix it?

Posted by Rachel on Stack Overflow See other posts from Stack Overflow or by Rachel
Published on 2012-03-21T17:18:24Z Indexed on 2012/03/21 17:29 UTC
Read the original article Hit count: 191

Filed under:

Simple stuff but somehow not able to crack it, below piece of code is throwing unexpected token at try/catch and unhandled exception:java.io.FileNotFound

 String fileName = "C:\\GS.xlsx";
 try{
        CSVReader reader = new CSVReader(new FileReader(fileName));
 }catch(Exception e){

 }

What is the possible issue in here, i know there is something really goofy that am doing in here...

public class PositionParserGS
{

     String fileName = "C:\\GS.xlsx";
     try{
            CSVReader reader = new CSVReader(new FileReader(fileName));
     }catch(Exception e){

     }
}

that's the complete code...

© Stack Overflow or respective owner

Related posts about java