码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
数组循环初始化
/*Name:数组循环化Power by StuartDate:2015-4-23*/public class ArrayTest02{ public static void main (String args[]){ int array[]=new int [10];...
分类:编程语言   时间:2015-04-23 23:18:18    阅读次数:180
hibernate分页查询的各种方法
统计总数: public Integer countAll1() { String hql = "select count(*) from News as news"; List list = getHibernateTemplate().find(hql); return lis...
分类:Web程序   时间:2015-04-23 23:15:17    阅读次数:169
类的静态(Static)成员——字段
定义一个雇员类:namespace StaticFieldTest1{ class Employee { public int Id { get; set; } public string FirstName { get; set; } publ...
分类:其他好文   时间:2015-04-23 23:09:16    阅读次数:228
泛型与反射 演示
import java.lang.reflect.Method;public class Test2 { public static void main(String[] args) { Gen gen1=new Gen("aaa"); gen1.showTypeN...
分类:其他好文   时间:2015-04-23 23:03:11    阅读次数:145
【string】hash table, two pointers, string
利用hash table, two pointers, string的题目。1.求最长不重复子串的长度hash table体现在一个数组,下标是字符串中元素的ASCII值,下标对应的元素代表该元素在字符串中出现的位置。two pointers体现在用i一步步向前移去遍历字符串中的元素,作为不重复子串...
分类:其他好文   时间:2015-04-23 23:01:47    阅读次数:131
九九乘法表
/* 自学java 九九乘法表 Power by Stuart Date: 2015.4.23 */public class Math { public static void main (String args[]){ for(int i=1;i<10;i+...
分类:其他好文   时间:2015-04-23 22:58:21    阅读次数:107
[LeetCode]32.Longest Valid Parentheses
题目Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.For “(()”, the longest valid parentheses substring is “()”, which h...
分类:其他好文   时间:2015-04-23 21:49:15    阅读次数:156
设计模式
1 单例模式(Singleton) 表示一个类只会生成唯一的一个对象.(第二十五讲) public class SingletonTest{ public static void main(String[] args) { Singleton singleton = Singleton.getIns...
分类:其他好文   时间:2015-04-23 21:35:02    阅读次数:180
#20 Valid Parentheses
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:其他好文   时间:2015-04-23 21:31:47    阅读次数:127
android 判断一个app是否是输入法
android 判断一个app是否是输入法之前做一个app,需要列出手机中安装的所有包,包括系统apps,但是又需要过滤输入法,于是后来找到这种方法来判断输入法。 public static boolean isInputMethodApp(Context context, String strPk...
分类:移动开发   时间:2015-04-23 21:22:59    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!