📄 test.java
字号:
/*
* Created on 2005-11-9
* Author 曹汕
* Version 1.0
* Copyright by CS.SSPKU Inc. All rights reserved.
*/
package com.struts.utils;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Date;
import com.struts.*;
import com.struts.controller.impl.*;/**
* @author remote
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Test {
public static void main(String args[]) throws SQLException{
DBConnectionManager dn=DBConnectionManager.getInstance();
// DBConnection db=new DBConnection();
Connection conn=dn.getConnection();
Statement stmt=conn.createStatement();
//
// if(db.executeUpdate("update dish set name='hello'")){
// System.out.println("ss");
// }
// ControllerImpl cc=new ControllerImpl();
// ResultSet rs=cc.selectRecord("select * from orderline");
// double a[]=new double[1000];
// int i=0;
// while(rs.next()){
//
// a[i]=rs.getDouble(6);
// i++;
//
// }
// for(int j=0;j<8;j++){
// System.out.println(a[j]);
// }
//
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -