- 浏览: 2109 次
- 性别:
- 来自: 上海
最新评论
文章列表
BaseDAO 简单封装:
public class BaseDAO{
public Connection conn = null;
public static String JDBC_DRIVER = "";
public static String DB_URL = "";
public static String DB_USERNAME = "";
public static String DB_PASSWORD = "";
static{
Properties p = new Prop ...
简单实例:
package com.zhaixiaofeng.reflect
public class Car(){
private String brand;
private String color;
private String maxSpeed;
public Car(){};
public Car(String brand, String color, String maxSpeed){
this.brandk = brand;
this.color = color;
this.maxSeepd = maxSpeed;
}
public voi ...