摘要: mybits-config.xml CustomerMapper.xml Customer.java MybitsTest.java 配置log4j log4j.properties 阅读全文
posted @ 2018-05-28 15:53 楷兵 阅读(620) 评论(0) 推荐(0)
摘要: // 题目描述 // 请实现一个函数用来判断字符串是否表示数值(包括整数和小数)。 // 例如,字符串"+100","5e2","-123","3.1416"和"-1E-16"都表示数值。 // 但是"12e","1a3.14","1.2.3","+-5"和"12e+4.3"都不是。 public static boolean isNumeric(char[] s... 阅读全文
posted @ 2018-05-28 14:24 楷兵 阅读(154) 评论(0) 推荐(0)
摘要: Map map = new HashMap(); ArrayList arrayList = new ArrayList(); //Insert one char from stringstream public void Insert(char ch) { if (map.containsKey(ch)){ map... 阅读全文
posted @ 2018-05-28 12:09 楷兵 阅读(106) 评论(0) 推荐(0)
摘要: // 题目描述 // 请实现一个函数用来匹配包括'.'和'*'的正则表达式。模式中的字符'.'表示任意一个字符, // 而'*'表示它前面的字符可以出现任意次(包含0次)。 // 在本题中,匹配是指字符串的所有字符匹配整个模式。 // 例如,字符串"aaa"与模式"a.a"和"ab*ac*a"匹配,但是与"aa.a"和"ab*a"均不匹配 public s... 阅读全文
posted @ 2018-05-28 11:34 楷兵 阅读(131) 评论(0) 推荐(0)