?? nokiaxls.java
字號:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.wwr.commons;import java.io.File;import jxl.Cell;import jxl.Sheet;import jxl.Workbook;/** * * @author user */public class NokiaXLS { public NokiaXLS(){ try{ File inputWorkbook = new File(""); Workbook w; String strCell = ""; w = Workbook.getWorkbook(inputWorkbook); // Get the first sheet Sheet sheet = w.getSheet(0); // Loop over first 10 column and lines for (int i = 0; i < sheet.getRows(); i++) { for (int j = 0; j < sheet.getColumns(); j++) { Cell cell = sheet.getCell(j, i); String cellContent = cell.getContents() ; if(cellContent.equals(null) || cellContent.equals("")){ }else{ strCell = strCell +cellContent+ "#"; } } System.out.println(strCell); System.out.println(" --------------------------"); strCell = ""; } }catch(Exception e){ e.printStackTrace(); } } public static void main(String[] args){ }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -