摘要: 连接数据库 利用QueryRunner进行操作 阅读全文
posted @ 2017-09-10 18:17 binryang 阅读(108) 评论(0) 推荐(0)
摘要: C3P0 config.xml 其中mvcapp在后面DButils中连接数据库使用 记得加入C3P0的jar包 假如C3P0出现No Suitable driver 解决方案 :在%JAVA_HOME%\jre\lib\ext下添加mysql connector java 5.1.12 bin.j 阅读全文
posted @ 2017-09-10 18:10 binryang 阅读(104) 评论(0) 推荐(0)
摘要: Field类 1.Field[] getFields()方法将返回一个包含Field对象的数组,这些数组记录了这个类或其超类的公有域 2.Field[] getDeclaredFields()方法返回一个包含Field对象的数组,这些数组记录了这个类的全部域 相应域的测试和结果 1.Class ge 阅读全文
posted @ 2017-08-17 20:52 binryang 阅读(154) 评论(0) 推荐(0)
摘要: 能够分析类能力的程序称为反射。 Class类 在程序运行期间,Java运行时系统始终为所有的对象维护一个被称为运行时的类型标识。保存这些信息的类被称为Class。 项目框架图 自己构建的一个Emplyee(Employee手动改正) 获得Class类对象的三种方法 1. static Class f 阅读全文
posted @ 2017-08-17 16:25 binryang 阅读(99) 评论(0) 推荐(0)
摘要: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below 阅读全文
posted @ 2017-08-15 16:08 binryang 阅读(117) 评论(0) 推荐(0)
摘要: The string is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibi 阅读全文
posted @ 2017-08-13 14:47 binryang 阅读(87) 评论(0) 推荐(0)
摘要: 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. Ex 阅读全文
posted @ 2017-07-18 15:39 binryang 阅读(83) 评论(0) 推荐(0)
摘要: Problem Determine whether an integer is a palindrome. Do this without extra space. "click to show spoilers." Code public boolean isPalindrome(int x) { 阅读全文
posted @ 2017-07-14 09:40 binryang 阅读(101) 评论(0) 推荐(0)
摘要: Problem Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = 123, return 321 "click to show spoilers." Note: The input is assumed 阅读全文
posted @ 2017-07-14 09:22 binryang 阅读(112) 评论(0) 推荐(0)
摘要: Problem Given a string, find the length of the longest substring without repeating characters. Examples: Given , the answer is , which the length is 3 阅读全文
posted @ 2017-07-10 15:40 binryang 阅读(106) 评论(0) 推荐(0)