columns列:Rows 工作表上所有的行

columns   

“模型”(Model) 在缺省情况下不显示。单击“”(columns)>“模型”(Model) 以显示“模型”(Model) 。...

专栏

columns 专栏...118 谷约评点:翻译擂台(文/谷约)

第一列

Rows 工作表上所有的行...columns(1) 第一列...columns("A") 第一列

工作表上所有的列

columns("A") 第一列...columns 工作表上所有的列

与 columns 相关的例句
 
  1. A court enclosed by columns
    周柱中庭由柱子围绕的厅堂
  2. Constructed with or having columns
    圆柱的圆柱的或由圆柱构成的
  3. having columns on all sides. 
    在所有的边上都有圆柱。
  4. Not having columns or pilasters. 
    无柱式的无支柱或壁柱的
  5. These columns sustain the arches. 
    这些圆柱支撑着拱门。
  6. The troops formed into columns
    战士排成了纵队。
  7. a row of evenly spaced columns
    通常为距离相等的一列柱子。
  8. cut a furrow into a columns
    在圆柱体里开一道沟。
  9. (architecture) lacking columns or pillars. 
    (建筑学)缺少圆柱或者柱子。
  10. Afford me the hospitality of your columns
    请贵刊惠予采用。

 

--------------------

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

public class ReadXLS {
    public static void main(String args[]) {
        try {
            Workbook book = Workbook.getWorkbook(new File("D:/3.xls"));
            // 获得第一个工作表对象
            Sheet sheet = book.getSheet(0);
            // 得到第一列的单元格
            for (int i=0,j=0;i<sheet.getColumns();i++) {
                Cell cell1 = sheet.getCell(i, 0);
                String result = cell1.getContents();
                System.out.println(result);
            }
            book.close();
        } catch (Exception e) {
            System.out.println(e);
        }
    }
}

java读取Excel一行的内容。

——————————————————————————

jxl.jar的下载地址和说明书

http://download.csdn.net/source/534250

http://www.ibm.com/developerworks/cn/java/l-javaExcel/index.html

http://baike.baidu.com/view/1327707.html

http://yuanyuan7891.javaeye.com/blog/656388

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值