Jordan Brand has been going out of theAir
Jordan 6 World Cup Brazilordinary with some of their Retro colorways over the
last few years and the trend c...
分类:
其他好文 时间:
2014-05-15 16:47:00
阅读次数:
288
本blog提供了一个简单的通过JDBC驱动建立JDBC连接例程,并分别通过Statement和PreparedStatement实现对数据库的查询。在下一篇blog中将重点比较Statement与PreparedStatement的差异。
1、为项目添加JDBC驱动
1)JDBC驱动下载
官方下载地址:mysql-connector-java-5.0.8.zip...
分类:
数据库 时间:
2014-05-15 07:00:40
阅读次数:
479
Robot Motion
Problem Description
A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The...
分类:
其他好文 时间:
2014-05-15 05:48:40
阅读次数:
346
Pat1043代码
题目描述:
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:
The left subtree of a node contains only nodes with keys less than t...
分类:
其他好文 时间:
2014-05-15 05:09:59
阅读次数:
351
题目
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer...
分类:
其他好文 时间:
2014-05-15 03:41:11
阅读次数:
257
1、使用新建线程结合handler来更新UI线程中的 ListView,快速点击“刷新”,会出现下面的错误:
??
The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not mod...
分类:
其他好文 时间:
2014-05-15 02:30:17
阅读次数:
254
用到的接口和类
1) java.sql.Connection 接口
1)) createStatement() 获得Statement
2)) prepareStatement(String sql) 获得preparedStatement
3)) prepareCall(String sql) 调用存储过程
2)java.sql.DriverManager 类
1))getConnection(String url, String user, String passwor...
分类:
数据库 时间:
2014-05-14 15:14:08
阅读次数:
519
今天再看这个题时,死活想不起这个单词是什么意思,查了字典都不知道,真晕了。
这个单词直译是颠倒顺序所形成的单词,实际上就是从集合中找出所有是由一组字母形成的那些单词,这种可以由很多组,即只要这组字母形成的字典中的单词多于1个,就要把这些单词输出出来。
怎么做呢?思路还是很简单的,要找出是由一组字母形成的单词,显然应该知道每一个单词是由哪些字母形成的,这当然可以建一个hash表,每次都比对has...
分类:
其他好文 时间:
2014-05-14 15:12:04
阅读次数:
296
android中,基本使用网络资源方式如下(同步) try { URL url = new
URL(myFeed); // Create a new HTTP URL connection URLConnection connection =
url.openConnection(); HttpUR...
分类:
移动开发 时间:
2014-05-14 13:51:01
阅读次数:
393
mysql_connect(): Connection using old (pre-4.1.1)
authentication protocol
refused解决方法有如下三种:1、服务器端升级启用secure_auth选项;2、客户端连接时off掉secure_auth,即连接时加上--sec...
分类:
数据库 时间:
2014-05-14 12:42:12
阅读次数:
528