importjava.util.regex.Pattern importjava.util.regex.Matcher public boolean isNumeric(String str) { Pattern pattern = Pattern.compile("[0-9]*"); Matche...
分类:
其他好文 时间:
2015-02-05 16:20:38
阅读次数:
141
Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) o...
分类:
其他好文 时间:
2015-02-05 15:05:47
阅读次数:
168
非静态方法(不带static)可以访问静态方法(带static),但是反过来就不行,为什么呢?
public class test{
public void static main(String args[]){
method(); //会出错,提示你讲method方法改成静态的
method2(); //调用方法正确
new Test2().method(); //正确
}
...
分类:
编程语言 时间:
2015-02-05 15:02:50
阅读次数:
136
@RequestMapping(value = "/downloadtradeinfo")
public void downloadtradeinfo(Model model, HttpServletRequest request,HttpServletResponse response) {
try {
String modlename="文件FOO.doc";
String te...
分类:
其他好文 时间:
2015-02-05 13:45:47
阅读次数:
182
一、新建的Java文件自动生成主函数
虽然只是一个很简单的事情,但应该还是有人不知道了,每次新建Java文件都要手动输入public static void main(String args[]){},非常麻烦,其实Eclipse可以自动生成这行,只是大多数的Java文件都是没有主函数的,所以这行默认关闭,
右击Java项目下的src可以选择New->Class也就可以新建类
然后在...
分类:
编程语言 时间:
2015-02-05 13:34:38
阅读次数:
164
There are many reasons due to the string class has been made immutable in Java. These reasons in view, concurrency issues, security issues and perform...
分类:
编程语言 时间:
2015-02-05 13:30:26
阅读次数:
175
Scheme的数据结构在前面的博文中我们使用了list等等,像其他的编程语言一样,Scheme也有字符(Character),字符串(String),符号(Symbol),向量(Vector)等数据结构。下面我们来一一介绍。1、字符在某个字符前添加#\来表面该物是一个字符。例如,#\a表示字符a。#...
分类:
其他好文 时间:
2015-02-05 13:17:07
阅读次数:
187
#region 新建立一个IISWEB站点 /// ///添加一个站点 /// public string CreateWebSite() { int siteID = int.Parse(GetNewWe...
分类:
Web程序 时间:
2015-02-05 13:06:47
阅读次数:
187
---恢复内容开始---标题:Letter Combinations of a Phone Number通过率:26.6%难度:中等Given a digit string, return all possible letter combinations that the number could ...
分类:
其他好文 时间:
2015-02-05 13:00:15
阅读次数:
173
代码就不说了,因为本地测试 ok,服务端 就不行 ,服务器 环境 阿里云 win2008 r2 64 位原因 是我没有这是 文件加权限 :左边 的 少了 权限~代码 :含义是 网络图片 裁剪 保存 到本地 ,本地 再 存储 到 七牛 云存储。 public static string Crop(s....
分类:
Web程序 时间:
2015-02-05 12:58:25
阅读次数:
270