Category Archives: java language

成为Java Expert的几本重要的书

成为Java Expert的几本重要的书 我所看重的成为Java Expert的几本重要的书: 1 component development for the java platform Author: Stuart Dabbs Halloway 2 Server-Based Java Programming Author:Ted Neward 3 Inside The Java Virtual Machine Author: Bill Venners 4 Effective Enterprise Java Author: Ted Neward

Posted in java language | Leave a comment

java中的break和continue关键字使用总结(z)

http://lavasoft.blog.51cto.com/62575/52685 有时会忘了,记一下: 一、作用和区别 break的作用是跳出当前循环块(for、while、do while)或程序块(switch)。在循环块中的作用是跳出当前正在循环的循环体。在程序块中的作用是中断和下一个case条件的比较。 continue用于结束循环体中其后语句的执行,并跳回循环程序块的开头执行下一次循环,而不是立刻循环体。 二、其他用途 break和continue可以配合语句标签使用。这个都很简单,下面给个综合实例,看看就明白 了: /*** Created by IntelliJ IDEA.* User: leizhimin* Date: 2007-11-29* Time: 15:47:20*/public class Test {public static void main(String args[]) {         Test test = new Test ();        test.testBreak1();        test.testContinue1();        test.testBreak2();        test.testContinue2();    }/**     … Continue reading

Posted in java language | Leave a comment