Eclipse中的Java应用程序调试

时间:2017-11-27 06:54:01

标签: java eclipse debugging

enter image description here

无法在调试视图中获取变量值,eclipse无法在断点处停止执行

import java.io.*;
import jxl.*;

public class Excelread {
    public static void main(String[] args) throws Throwable {
        String Filename = "C:\\library\\TestData.xls";
        String Sheetname = "Source";
        String[][] arrayExcelData = null;
        FileInputStream fis = new FileInputStream(Filename);
        Workbook WB = Workbook.getWorkbook(fis);
        Sheet SH = WB.getSheet(Sheetname);
        int TotalCol = SH.getColumns();
        int TotalRow = SH.getRows();
        System.out.println(TotalCol + " " + TotalRow);
        arrayExcelData = new String[TotalRow][TotalCol];
        for (int i = 0; i < TotalRow; i++) {
            for (int j = 0; j < TotalCol; j++) {
                arrayExcelData[i][j] = SH.getCell(j, i).getContents();
                System.out.print(arrayExcelData[i][j] + "\t");
            }
            System.out.println();
        }

    }
}

0 个答案:

没有答案