import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class MyConnection {
Connection con;
public static void main(String[] args...
分类:
数据库 时间:
2014-07-23 13:39:46
阅读次数:
287
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class MyConnection {
Connection con;
public static void main(String[] args...
分类:
数据库 时间:
2014-07-23 13:27:46
阅读次数:
367
Statement:
通过类的名字,把类(元数据对象)加载到内存中,加载驱动,由于是对数据流做操作,一定要加异常处理,后面也是
// 通过类的名字,把类(元数据对象)加载到内存中
Class.forName("com.mysql.jdbc.Driver");
创建一个数据库链接,getConnection方法中的第一个参数是指数据库类型和所操作数据库的名称,第二个参数是指用户名,第三个参...
分类:
数据库 时间:
2014-07-23 13:05:36
阅读次数:
312
Lambda表达式 —— 用简单的方法实现只有一个函数的接口 Lambda syntax 1 2 3 (parameters) -> expression (parameters) -> statement (parameters) -> { statements } Lambda表达式实例 1 2 3 (intx,inty) -> x...
分类:
编程语言 时间:
2014-07-23 00:33:37
阅读次数:
318
TriangleGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given...
分类:
其他好文 时间:
2014-07-22 22:47:52
阅读次数:
230
昨天在做 Jquery DataTables 的时候,遇到的一个问题,我使用MVC,在tables上加入了一个actionlink的href。但是在运行起来的时候,报错:DataTables warning: Requested unknown parameter '3' from the dat....
分类:
Web程序 时间:
2014-07-22 22:46:15
阅读次数:
389
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-07-22 22:40:36
阅读次数:
238
题目: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 sorte....
分类:
编程语言 时间:
2014-07-22 00:35:34
阅读次数:
290
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points ...
分类:
其他好文 时间:
2014-07-21 22:11:18
阅读次数:
289
Interesting Calculator
Time Limit: 2 Sec Memory Limit: 128 MB
Submit: 163 Solved: 49
Description
There is an interesting calculator. It has 3 rows of buttons.
Row 1: button 0, 1,...
分类:
其他好文 时间:
2014-07-20 22:35:23
阅读次数:
234