package javaDemo;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class GetNumFromString {
/**
* @songwenju
*/
public static void main(String[] args) {
String str...
分类:
编程语言 时间:
2014-12-17 16:26:21
阅读次数:
235
1.前言 struts2对于写入excel数据支持的很好,话不多说,上代码
2.jsp页面:
<%
String path = request.getContextPath();
String base...
分类:
数据库 时间:
2014-12-17 16:24:39
阅读次数:
200
Java 一次性读取或写入文件内容public class IOHelper {
public static void copy(Reader in,Writer out) throws IOException {
int c = -1;
while((c = in.read()) != -1) {
out.write(c);
}
}
public static St...
分类:
编程语言 时间:
2014-12-17 16:22:31
阅读次数:
118
正向写法:string filter = "code like '%"+sheetname+"%'";filter值为: '表F.3_1' like '%'+ code+'%'反向写法:stringfilter= "'" + sheetname + "' like '%'+ code+'%'";fi...
分类:
其他好文 时间:
2014-12-17 16:17:19
阅读次数:
231
一会asp.net,一会java的.....Properties reqProperties = new Properties(); String path = System.getProperty("user.dir"); InputStream in = new FileInputStr...
分类:
编程语言 时间:
2014-12-17 16:12:03
阅读次数:
152
题目描述:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique l...
分类:
其他好文 时间:
2014-12-17 16:10:40
阅读次数:
167
成员变量,静态方法看左边;非静态方法:编译看左边,运行看右边。 1 public class BoundDemo { 2 public static void main(String[] args) { 3 A a=new B(); 4 System.err....
分类:
其他好文 时间:
2014-12-17 16:00:19
阅读次数:
318
--lua中字符串索引从前往后是1,2,……,从后往前是-1,-2……。--string库中所有的function都不会直接操作字符串,只返回一个结果。--------------------------------------------------------------------------...
分类:
其他好文 时间:
2014-12-17 15:56:47
阅读次数:
197
private void Form1_Load(object sender, EventArgs e) { string strCon = "Server=localhost;User Id=sa;Pwd=;DataBase=my";//定义数据库连接字符串 ...
分类:
其他好文 时间:
2014-12-17 15:55:43
阅读次数:
178
格式:InputDialog(Shell parentShell, String dialogTitle, String dialogMessage, String initialValue, InputValidator validator)Creates ...
分类:
其他好文 时间:
2014-12-17 15:52:54
阅读次数:
222