![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
ntwjf1986
这个作者很懒,什么都没留下…
展开
-
递归应用
1、求阶乘 public int f1(int n){ if(n == 1){ return 1; }else{ return n * f1(n-1); } } 2、求Fibonacci数列的第n个数是多少 public int f2(int n){ if(n == 1 || n == 2){ return 1; }el...原创 2015-05-05 16:56:02 · 102 阅读 · 0 评论 -
IO操作
1、文件读取 @Test public void testFileInputStream(){ InputStream in = null; try { in = new FileInputStream("f:/a/hello.txt"); int readCount = 0; byte[] buffer = new byte[1024]; ...原创 2015-06-10 09:30:21 · 70 阅读 · 0 评论 -
java poi读写excel
[size=small]1、读取excel2003[/size] [code="java"] @Test //读取excel2003 public void testCreateXLS(){ try { String path = "f:\\app\\iotest\\n.xls.doc"; String postfix = (path.trim().lastIn...原创 2015-12-24 09:27:29 · 81 阅读 · 0 评论 -
java poi导出excel
[code="html"] 下载表格 [/code] [code="java"] public class DownLoadExcelServlet extends HttpServlet { private static final long serialVersionUID = 1L; public void doGet(HttpServ...原创 2016-01-07 16:17:02 · 117 阅读 · 0 评论