2015年6月16日

摘要: 读取以下两种格式的Excel : *.xls and *.xlsx用Apache POI API来实现,需要用到 HSSF 和 XSSF 的类库HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) (.x... 阅读全文
posted @ 2015-06-16 17:16 张缤分 阅读(330) 评论(0) 推荐(0)
摘要: package com.file.properties;import java.io.FileInputStream;import java.util.Properties;public class ReadProperties { Properties prop; public ReadPro... 阅读全文
posted @ 2015-06-16 15:52 张缤分 阅读(342) 评论(0) 推荐(0)
摘要: Reading Properties file :Properties prop = new Properties()def path = "D:\\SoapUIStudy\\application.properties"FileInputStream fs = new FileInputStrea... 阅读全文
posted @ 2015-06-16 15:15 张缤分 阅读(188) 评论(0) 推荐(0)
摘要: Hashset:HashSet set = new HashSet()set.add("India")set.add("USA")set.add("China")log.info "Set size is : " + set.size()set.add("China")log.info "Set s... 阅读全文
posted @ 2015-06-16 15:08 张缤分 阅读(341) 评论(0) 推荐(0)
摘要: Array:def x = new String[5]x[0] = "India"x[1] = "USA"x[2] = "Korea"x[3] = "Japan"x[4] = "China"log.info "Size of list is " + x.size()log.info "The fir... 阅读全文
posted @ 2015-06-16 14:54 张缤分 阅读(410) 评论(0) 推荐(0)
摘要: def x="I like to read books before bed"def temp = x.split(" ")log.info "Size of array is : "+temp.lengthlog.info temp[0]log.info temp[1]log.info x.sub... 阅读全文
posted @ 2015-06-16 14:42 张缤分 阅读(383) 评论(0) 推荐(0)
摘要: Code example :package com.file.properties;import java.io.FileInputStream;import java.util.Properties;public class ReadProperties { Properties prop; ... 阅读全文
posted @ 2015-06-16 14:16 张缤分 阅读(180) 评论(0) 推荐(0)

导航