摘要: //Author: ScottChiang//Date: August 2012import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class TestPreparedStatement { /** * @param args * @throws Exception ... 阅读全文
posted @ 2013-04-14 06:21 ScottChiang 阅读(792) 评论(0) 推荐(0)
摘要: //Author: ScottChiang //Date: June 2012package com.test.sort;import java.util.Random;public class QuickSort { public static void main(String[] args) { //随机产生一个数组 Random random = new Random(); int countNumbers = random.nextInt(17) + 3 ; int []randomArray = new int[count... 阅读全文
posted @ 2013-04-08 13:23 ScottChiang 阅读(414) 评论(0) 推荐(1)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace StreamReadWrite{ class Program { static void Main(string[] args) { // Get the directories currently on the C drive. DirectoryInfo[] cDirs = new Direct... 阅读全文
posted @ 2013-04-08 12:04 ScottChiang 阅读(196) 评论(0) 推荐(1)
摘要: 实现C#XML序列化技术使用到什么具体的方法呢?我们在具体的操作过程中需要注意什么呢?那么这里向你展示一个Demo,希望对你了解C#XML序列化技术有所帮助。 首先,我们定义一个需要序列化的对象:using System; namespace XMLSerializer{ public class TestXML { public string name; public string sex; public string age; }} 然后我们就可以在程序中使用这个类构造对象,C#XML序列化。 private void button1_Click( obj... 阅读全文
posted @ 2013-04-08 12:00 ScottChiang 阅读(349) 评论(0) 推荐(0)
摘要: 近期由于版权保护问题,腾讯禁止了在海外使用QQ。以下是在海外使用QQ音乐的方法搜一个免费代理的网站,利用它找到一个中国的代理如IP:211.167.112.99 端口80进入IE浏览器Internet选项-连接-局域网设置-代理服务器-复制你找到的中国代理IP和端口Done 阅读全文
posted @ 2013-04-08 11:50 ScottChiang 阅读(3662) 评论(0) 推荐(0)