The constructor XSSFWorkbook(FileInputStream) is undefined
<p>Iam trying to read data from an excel file, i am using the following code :</p>

<pre><code>    File Excel = new File("C:\\Users\\data.xlsx");
    FileInputStream fis = new FileInputStream(Excel);

    XSSFWorkbook wb = new XSSFWorkbook(fis);
</code></pre>

<p>but i am getting the compilation error as 
The constructor <code>XSSFWorkbook(FileInputStream)</code> is undefined</p>