![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
崔国瑞
相信一切皆有可能!
展开
-
java读取word-excel-ppt文件
OFFICE文档使用POI控件,PDF可以使用PDFBOX0.7.3控件,完全支持中文,用XPDF也行,不过感觉PDFBOX比较好,而且作者也在更新。水平有限,万望各位指正WORD:import org.apache.lucene.document.Document;import org.apache.lucene.document.Field;import org.apache.poi转载 2009-04-27 16:29:00 · 998 阅读 · 0 评论 -
javascript实现显示系统当前日期
将下面内容放到中<!--function getTimeNow() {var time = new Date()var year = time.getYear();var month = time.getMonth() + 1 ;var data = time.getDate();var hour = time.getHours()var minute = time原创 2009-06-21 17:58:00 · 707 阅读 · 0 评论 -
java实现读取exe文件
public class c { public static void main(String args[]) { try { //Runtime.getRuntime().exec("cmd.exe /c start D://Work//hello.exe"); String command = "cmd.exe /c原创 2009-06-27 09:28:00 · 3754 阅读 · 0 评论 -
java数字转汉字大写(全)
MoneyUtil.javapublic class MoneyUtil { public static String[] chineseDigits = new String[] { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"}; /** * 把金额转换为汉字表示的数量,小数点后四舍五入保留两位转载 2009-06-27 19:04:00 · 12806 阅读 · 3 评论 -
eclipse使用java测试单元testcase
主要使用的是junit.framework 这个包用法:1.新建一个测试源文件夹(source folder),可以建个包(自己选择),2.新建类SessionTest.javaimport junit.framework.TestCase;public class SessionTest extends TestCase { public void Hello原创 2009-10-16 09:16:00 · 3264 阅读 · 0 评论 -
JSP上传组件
file.jsp <% request.setCharacterEncoding("GBK"); response.setContentType("text/html;charset=GB2312"); char[] hchl={13,10}; String boundary=request.getContentType().substring(30)原创 2009-10-20 15:05:00 · 2109 阅读 · 3 评论