摘要: import java.sql.DriverManager;import java.sql.SQLException;import java.sql.*;import com.mysql.jdbc.Connection;public class MySql { public static void main(String[]args) throws SQLException { try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e) { // TODO Auto-gen 阅读全文
posted @ 2011-08-17 18:41 glose 阅读(317) 评论(0) 推荐(0) 编辑
摘要: package Test;import java.io.File;import java.io.IOException;public class CreateFileTest {/*** 创建单个文件* @param destFileName 文件名* @return 创建成功返回true,否则返回false*/public static boolean CreateFile(String destFileName) { File file = new File(destFileName); if (file.exists()) { System.out.println("创建单个文 阅读全文
posted @ 2011-08-17 09:35 glose 阅读(8125) 评论(0) 推荐(0) 编辑