Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 关于java操作execle的菜鸟问题
jxnczsg



发贴: 0
积分: 0
于 2003-06-09 16:32 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在网上偶然间看到4月份那篇java操作execl表的文章,写得非常得不错,现在我就是靠着那篇文章做一个程序,把Execl中的数据导入到Sybase数据库中,非常的好用,也非常谢谢,但我有一个问题,
   Cell cdemo=rs.getCell(5,5);
strc00=cdemo.getContents();
当Cell(5,5)没有数据的时候,系统会报一个错误:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
at jxl.read.biff.SheetImpl.getCell(SheetImpl.java:268)
at test.main(test.java:19)
不知道有没有判断为空的方法,非常谢谢.



作者 Re:关于java操作execle的菜鸟问题 [Re:jxnczsg]
sc33



版主


发贴: 128
积分: 30
于 2003-06-17 21:19 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你试试判断rs是否为空



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923