illegal forward reference in java

后端 未结 4 1315
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 15:58

    although getWorkbook is static, so accordingly, this code should have worked. But here, using the reference before its declaration or in the same statement as declaration is causing error "Forward referencing i.e. using reference before declaration".

提交回复
热议问题