码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
jdbc防止sql注入-PreparedStatement
jdbc防止sql注入 jdbc防止sql注入-PreparedStatement  public List getUserByName(String name,String password){         ResultSet rs = null;         PreparedStatement stat = null;         Conn...
分类:数据库   时间:2015-07-11 09:06:42    阅读次数:181
java 图片 批量 压缩 +全部压缩
/* oldsrc  : 原图片地址文件夹 如 'd:/'    newsrc  : 压缩后图片地址文件夹 如 'e:/'    widthdist,heightdist : 压缩后的宽和高        createtime 2010-11-25    @auto yijianfeng  */ public void reduceImgAll(String oldsrc,...
分类:编程语言   时间:2015-07-11 09:06:29    阅读次数:165
LeetCode OJ Basic Calculator II
Basic Calculator II题目思路和这个一样:Basic Calculator I代码class ExpressionTransformation { public: string trans_to_postfix_expression_to_s(string); // 将得到的表达式转化为后缀表达式 long long int calculate_from_postf...
分类:其他好文   时间:2015-07-11 09:02:25    阅读次数:130
Coreseek:indexer crashed神秘
浩哥前两天让我再Coreseek该指数再次这样做,由于需求方面变化不大,公司名称应出现指数。在添加的配置文件的面孔sql_field_string:串场.。此属性特别有用,因为它不仅作为过滤器的特性并且还能够全文搜索的,您可以回到原来的文本信息。然后写好文件,建立索引,建索引的时候出现了这么一个匪夷...
分类:其他好文   时间:2015-07-11 09:01:52    阅读次数:161
5:Longest Palindromic Substring
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 longes...
分类:其他好文   时间:2015-07-11 09:00:02    阅读次数:101
3.Longest Substring Without Repeating Characters(string; DP)
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-07-11 06:43:10    阅读次数:124
关于Class.getResource和ClassLoader.getResource的路径问题
Java中取资源时,经常用到Class.getResource和ClassLoader.getResource,这里来看看他们在取资源文件时候的路径问题。转自:http://www.cnblogs.com/yejg1212/p/3270152.htmlClass.getResource(String...
分类:其他好文   时间:2015-07-11 06:42:17    阅读次数:131
LeetCode20:Valid Parentheses
Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. The brackets must close in the correct order, “()” and “()[]{}” are all valid...
分类:其他好文   时间:2015-07-11 01:06:18    阅读次数:177
a+=b 等价于 a=a+b ?
a += b和a = a + b完全等价么(java)?可能很多人以为是一样的,其实并非等价的,下面看一下证据吧。 public class Test { public static void main(String[] args) { int a = 0; float c = 2.0f; a += c; a = a +...
分类:其他好文   时间:2015-07-10 23:46:38    阅读次数:397
Java基础-简单的字符流-FileReader,FileWriter
简介:如题 package com.cc.test; import java.io.FileReader; import java.io.FileWriter; public class TestChar { public static void main(String[] args) { File...
分类:编程语言   时间:2015-07-10 23:41:08    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!