/*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
统计总数: 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
定义一个雇员类: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
利用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
题目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
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是否是输入法之前做一个app,需要列出手机中安装的所有包,包括系统apps,但是又需要过滤输入法,于是后来找到这种方法来判断输入法。 public static boolean isInputMethodApp(Context context, String strPk...
分类:
移动开发 时间:
2015-04-23 21:22:59
阅读次数:
179