illegal forward reference in java

后端 未结 4 1325
Happy的楠姐
Happy的楠姐 2020-12-09 15:50
 import java.io.*;
 import jxl.*;
 class Xlparsing
 {
   Workbook wb =wb.getWorkbook(new File(
    \"C:\\\\Documents and Settings\\\\kmoorthi\\\\Desktop\\\\ak\\\\new         


        
4条回答
  •  醉话见心
    2020-12-09 16:20

    Forward Illegal Reference is a term which comes into picture when an uninitialized non global variable value is assigned to a global variable.

    In your case Workbook wb = wb.getWorkbook(new File("----")); - wb is uninitialized before calling the getWorkbook() method. For avoiding the FIR you should initialize wb.

提交回复
热议问题