java基础语法
wenzhu0_0
这个作者很懒,什么都没留下…
展开
-
substring
substringpublic String substring(int beginIndex, int endIndex)返回一个新字符串,它是此字符串的一个子字符串。该子字符串从指定的 beginIndex 处开始,一直到索引 endIndex - 1 处的字符。因此,该子字符串的长度为 endIndex-beginIndex。示转载 2014-10-31 15:24:40 · 833 阅读 · 0 评论 -
用HSSFWorkbook来对excel进行读操作
import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOException;import org.apache.poi.hssf.usermodel.HSSFCell;import org.apache.p转载 2014-10-31 15:36:35 · 532 阅读 · 0 评论 -
java解析xml文件
使用java解析xml文件,通过dom4j。代码如下:package com.java.team;import java.io.File;import java.util.ArrayList;import java.util.Iterator;import java.util.List;import org.dom4j.Document;import org.dom4j.D转载 2015-05-05 22:18:37 · 457 阅读 · 0 评论