摘要:
https://maven.apache.org/guides/getting-started/maven-in-five-minutes.htmlMaven is a build automation tool1. installhttp://maven.apache.org/download.c...
阅读全文
posted @ 2014-09-17 06:46
phoenix13
阅读(133)
推荐(0)
编辑
摘要:
http://docs.mongodb.org/manual/tutorial/getting-started-with-the-mongo-shell/ Getting Started with themongoShellhttp://docs.mongodb.org/manual/refere...
阅读全文
posted @ 2014-08-07 07:47
phoenix13
阅读(225)
推荐(0)
编辑
摘要:
the order of execution is: static initializer, instance initializer, constructor1.Initializing Fieldspublic class BedAndBreakfast { // initialize t...
阅读全文
posted @ 2014-08-06 08:02
phoenix13
阅读(325)
推荐(0)
编辑
摘要:
1. 2种实现方法: thread类和runnable接口extends Theadpackage demo1;class Runner extends Thread { @Override public void run() { for (int i=0;i list1 ...
阅读全文
posted @ 2014-05-17 04:07
phoenix13
阅读(614)
推荐(0)
编辑
摘要:
0. 什么时候用catch,什么时候用throwshttp://stackoverflow.com/questions/11853348/throwing-and-catching-exceptionsThrowing and Catching Exceptionshttp://www.onjava...
阅读全文
posted @ 2014-04-09 05:36
phoenix13
阅读(186)
推荐(0)
编辑
摘要:
1. sprintf Replace the percent (%) sign by a variable passed as an argument:http://www.w3schools.com/php/func_string_sprintf.asp2. global variableusing global variable inside function3. print_rPrints human-readable information about a variable4. str_word_count second parameter 0: the number of w...
阅读全文
posted @ 2014-03-17 10:27
phoenix13
阅读(163)
推荐(0)
编辑
摘要:
1. override Comparatorimport java.util.HashSet;import java.util.Stack;import java.util.Vector;import java.util.Queue;import java.util.PriorityQueue;import java.util.Comparator;public class test1 { public static void main(String[] args) { PriorityQueue q1 = new PriorityQueue(10,myCompar...
阅读全文
posted @ 2014-02-11 06:53
phoenix13
阅读(801)
推荐(0)
编辑
摘要:
http://www.cnblogs.com/zpq521/archive/2008/07/12/1241492.htmlgetElementByID() getElementsByName() getElementsByTagName()的区别getElementByID() getElementsByName() getElementsByTagName()的区别Web标准下可以通过getElementById(), getElementsByName(), and getElementsByTagName()访问Documnent中的任一个标签:1getElementById(“ID”)
阅读全文
posted @ 2013-07-19 22:35
phoenix13
阅读(295)
推荐(0)
编辑
摘要:
http://www.jb51.net/article/18717.htmjavascript 异常处理使用总结http://www.w3school.com.cn/js/js_errors.aspJavaScript 错误 - Throw、Try 和 Catchtry{ }catch(error){ with(document){ write("出现了异常"); write("异常类型:"+error.name+""); write("异常消息:"+error.message); } }finally{ docu
阅读全文
posted @ 2013-07-19 15:28
phoenix13
阅读(173)
推荐(0)
编辑
摘要:
http://www.w3school.com.cn/js/js_whereto.aspJavaScript 输出1. 取代head,也就是整个页面document.getElementById("head").innerHTML="My First JavaScript";2. writedocument.write("My First JavaScript");
阅读全文
posted @ 2013-07-19 15:03
phoenix13
阅读(132)
推荐(0)
编辑