<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/linzhengqun" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/linzhengqun" type="application/rss+xml"></fs:self_link><lastBuildDate>Thu, 26 May 2011 13:49:00 GMT</lastBuildDate><title>colin小屋</title><description>写代码的林！</description><link>http://blog.csdn.net/blogrss.aspx?username=linzhengqun</link><item><title>YY微博</title><link>http://blog.csdn.net/linzhengqun/archive/2011/05/26/6448557.aspx</link><description>&lt;br /&gt;地址&lt;br /&gt;http://weibo.com/jaccicagaga&lt;br /&gt;如果你有微博，一起来分享吧。&lt;img src=&quot;http://www1.feedsky.com/t1/515483656/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/05/26/6448557.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 26 May 2011 21:49:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/05/26/6448557.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/05/26/6448557.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483656/1167788</fs:itemid></item><item><title>Java语言基础：流类(1)</title><link>http://blog.csdn.net/linzhengqun/archive/2011/04/05/6303037.aspx</link><description>1.  java通过流的概念来实现数据的输入输出，或叫读写更容易理解一些；下面4个类是所有流的基类，分别处理字节和字符的读写：InputStream: 输入(读)字节流抽象类。OutputStream: 输出(写)字节流抽象类。Reader: 输入(读)字符流抽象类。Writer: 输出(写)字符流抽象类。2.  
上面4个抽象类提供了最基本的读写方法，输入输出流有一个当前位置(Pos)的概念，指定下一次的读写将从流的什么位置开始，调用Read或Write方法时，Pos会同时向后移，移多少依读写多少字节或多少字符而定：InpuStream：方法说明public abstract int read()从流中读下一个字节，方法返回这个字节，但如果到达流结尾，将返回回-1。public int read(byte[] b)从流中读出多个字节，并存到数组b中；期望读出的字节数由数组的长度决定，方法返回的是实际读出的字节，如果已到达结尾将返回-1。public int read(byte[] b, int off, int len) 从流中读出多个字节，并存&lt;img src=&quot;http://www1.feedsky.com/t1/515483657/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/04/05/6303037.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Tue, 05 Apr 2011 16:27:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/04/05/6303037.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/04/05/6303037.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483657/1167788</fs:itemid></item><item><title>Java语言基础：多线程</title><link>http://blog.csdn.net/linzhengqun/archive/2011/04/02/6296458.aspx</link><description>&lt;br /&gt;1.  有两种方法可以创建并运行一个线程：继承Thread类并覆盖Run方法，Run中的代码就在另一个线程执行。&lt;br /&gt;class MyThread extends Thread {
    MyThread() {
        // 调用下面代码，线程开始运行
        start();
    }
 
    @Override
    public void run() {
        // 这里的代码是在线程中执行的
        int i = 0;
        while (i&lt;img src=&quot;http://www1.feedsky.com/t1/515483658/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/04/02/6296458.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Sat, 02 Apr 2011 01:55:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/04/02/6296458.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/04/02/6296458.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483658/1167788</fs:itemid></item><item><title>Java语言基础：RTTI</title><link>http://blog.csdn.net/linzhengqun/archive/2011/03/28/6284929.aspx</link><description>&lt;br /&gt; 1.  
每个类都有一个Class对象，当我们在运行期第一次生成类的实例时，JVM就加载这个类的Class对象，然后用这个Class对象来创建类实例；Class类似于Delphi中的引用类TClass，用于保存类的运行时信息。 2.  
Class的static方法forName()用于查找某个类的Class对象，如果forName找不到你要的类的Class对象，会抛出ClassNotFoundException异常：class A{
}
 
public class Main {            
    public static void main(String[] args) {
        try {
            Class cls = Class.forName(&quot;A&quot;);
            System.out.println(cls.getName());
        } catch (ClassNotFoundException e) {
            e.printStackTrac&lt;img src=&quot;http://www1.feedsky.com/t1/515483659/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/03/28/6284929.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Mon, 28 Mar 2011 23:51:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/03/28/6284929.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/03/28/6284929.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483659/1167788</fs:itemid></item><item><title>Java语言基础：异常机制</title><link>http://blog.csdn.net/linzhengqun/archive/2011/03/27/6282202.aspx</link><description>&lt;br /&gt;1.  抛出异常通过throw new 
ThrowableClass语法可以抛出一个异常，其中ThrowableClass是一个从Throwable继承的类，或者是Throwable类本身，先看下面的&lt;br /&gt;public void proc(){
    // Exception是Throwable的继承类，代表最基本的异常
    throw new Exception(&quot;hello&quot;);
}
 上面的代码会导致编译错误，对于有抛出异常的方法，编译器强制要求：要么在方法上声明要抛出的异常(称为异常说明)，要么在方法中用try块捕获这个异常。&lt;br /&gt;// 用异常说明，说明该方法要抛出的异常
public void proc() throws Exception{
    throw new Exception(&quot;hello&quot;);
}
 
// 用try块捕获该异常
public void proc(){
    try {
        throw new Exception(&quot;hello&quot;);
    } catch (Except&lt;img src=&quot;http://www1.feedsky.com/t1/515483660/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/03/27/6282202.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Sun, 27 Mar 2011 21:34:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/03/27/6282202.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/03/27/6282202.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483660/1167788</fs:itemid></item><item><title>Java语言基础：抽象类和接口</title><link>http://blog.csdn.net/linzhengqun/archive/2011/03/27/6280944.aspx</link><description>&lt;br /&gt;1.  一个类中的方法如果只有声明没有实现，则称为抽象方法，必须用abstract修饰之；一个有抽象方法的类称为抽象类，也必须用abstract修饰之，但抽象类可以没有抽象方法；抽象类不能被创建：&lt;br /&gt;// 抽象类
abstract class A {
    // 抽象方法
    abstract public void proc();
}
 
// 没有抽象方法的抽象类
abstract class B {
    public void proc(){
    }
}
 
public class Main {            
    public static void main(String[] args) {
        // 不能创建抽象类，下面两句编译错误
        A a = new A();
        B b = new B();
    }
}
&lt;br /&gt;2.  一个继承自抽象类的子类，如果没有覆盖抽象基类的所有方法，它也是抽象类，必须用abstract修饰之：&lt;br /&gt;// 抽&lt;img src=&quot;http://www1.feedsky.com/t1/515483661/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/03/27/6280944.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Sun, 27 Mar 2011 02:07:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/03/27/6280944.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/03/27/6280944.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483661/1167788</fs:itemid></item><item><title>Java语言基础：对象的初始化</title><link>http://blog.csdn.net/linzhengqun/archive/2011/03/26/6279193.aspx</link><description>1.  如果基类存在默认构造函数，则在子类构造之前，会先调用基类的默认构造函数：class A {
    A() {
        System.out.println(&quot;A create&quot;);
    }
}
 
class B extends A {
    B() {
        // 会在这里先调用A的默认构造函数
        System.out.println(&quot;B create&quot;);
    }
}
 
class C extends A {
    C(int i) {
        // 会在这里先调用A的默认构造函数
        System.out.println(&quot;C create&quot;);
    }
}
 
public class Main {            
    public static void main(String[] args) {
        B b = new B();
        C c = new C(10);
    }
}&lt;img src=&quot;http://www1.feedsky.com/t1/515483662/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/03/26/6279193.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Sat, 26 Mar 2011 01:23:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/03/26/6279193.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/03/26/6279193.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483662/1167788</fs:itemid></item><item><title>Java语言基础：基本数组类型</title><link>http://blog.csdn.net/linzhengqun/archive/2011/03/25/6278803.aspx</link><description>&lt;br /&gt;1.  一维数组的声明和初始化，分成动态和静态：&lt;br /&gt;// 动态创建10个整型，默认初始化为0
int[] a1 = new int[10];
 
// 静态创建4个整型，并初始化为括号中的值
int[] a2 = {1, 2, 3, 4};
 
// 动态创建MyClass数组，需要遍历创建数组中的每个类实例
MyClass[] a3 = new MyClass[3];
for (int i = 0; i &lt;br /&gt;2.  多维数组可理解为数组的数组，同样可以有两种声明形式：&lt;br /&gt;public class Main {        
    static void printInt(int[][] ints) {
        for (int&lt;img src=&quot;http://www1.feedsky.com/t1/515483663/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/03/25/6278803.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Fri, 25 Mar 2011 21:48:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/03/25/6278803.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/03/25/6278803.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483663/1167788</fs:itemid></item><item><title>Java语言基础：内部类</title><link>http://blog.csdn.net/linzhengqun/archive/2011/03/24/6275586.aspx</link><description>&lt;br /&gt; 1.  普通内部类普通内部类的一个最简单的例子：// 外部类
class OutterClass {
    // 内部类
    public class InnerClass {
        private int i = 0;
        public int getInt(){
            return i;
        }
    }
    public void proc(){
        InnerClass inClass = new InnerClass();
        System.out.println(inClass.getInt());
    }
}
 
public class Main {    
    public static void main(String[] args) {
        OutterClass outClass = new OutterClass();
        outClass.proc();
    }
} 外部类可以访问内&lt;img src=&quot;http://www1.feedsky.com/t1/515483664/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/03/24/6275586.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 24 Mar 2011 22:29:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/03/24/6275586.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/03/24/6275586.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483664/1167788</fs:itemid></item><item><title>Java语言基础：泛型</title><link>http://blog.csdn.net/linzhengqun/archive/2011/03/24/6272818.aspx</link><description>&lt;br /&gt;     我必须承认我不是一个Java程序员，日常开发主要是C++和Delphi，使用Java完全是为了开发Android应用。今天在看Java的泛型，有些方面感到很奇怪，先来看下面的代码：&lt;br /&gt;     class Shape {&lt;br /&gt;        public void Draw() 
{&lt;br /&gt;            System.out.println(&quot;Draw Shape&quot;);&lt;br /&gt;        }&lt;br /&gt;    
}&lt;br /&gt;     class Rect extends Shape 
{    &lt;br /&gt;        @Override&lt;br /&gt;        public void Draw() 
{&lt;br /&gt;            System.out.println(&quot;Draw Rect&quot;);&lt;br /&gt;        }&lt;br /&gt;    
}&lt;br /&gt;     class Line extends Shape 
{&lt;br /&gt;        @Override&lt;br /&gt;        publ&lt;img src=&quot;http://www1.feedsky.com/t1/515483665/linzhengqun/csdn.net/s.gif?r=http://blog.csdn.net/linzhengqun/archive/2011/03/24/6272818.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 24 Mar 2011 00:04:00 +0800</pubDate><author>林</author><guid isPermaLink="false">http://blog.csdn.net/linzhengqun/archive/2011/03/24/6272818.aspx</guid><dc:creator>林</dc:creator><fs:srclink>http://blog.csdn.net/linzhengqun/archive/2011/03/24/6272818.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/linzhengqun/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/linzhengqun/~1167806/515483665/1167788</fs:itemid></item></channel></rss>
