发布时间:2013-06-20 21:43:38
Basic conceptsThe Java container library takes the idea of "holding your objects" and divides it into two distinct concepts, expressed as the basic interfaces of the library:1.Collection: a sequence of individual elements with one or more rules applied to them. A List must hold the elements in th.........【阅读全文】
发布时间:2013-05-30 03:29:31
1. Install some modulessudo apt-get install mtp-tools mtpfs2. Create the file 99-android.rules in /etc/udev/rules.d/sudo vi /etc/udev/rules.d/99-android.rulesPasted in the the following.. # Nexus 7SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"2. Make it executablesudo ch.........【阅读全文】
发布时间:2013-05-24 15:23:34
点击(此处)折叠或打开public class TestCodeSeg{ static { System.out.println("1"); }.........【阅读全文】
发布时间:2013-05-22 20:00:55
众所周之,String 、Math、还有Integer、Double。。。。等这些封装类重写了Object中的equals()方法,让它不再比较句柄(引用),而是比较对象中实际包含的整数的值,即比较的是内容。而Object的equals()方法比较的是地址值。 一般来说,如果你要把一个类的对象放入容器中,那么通常要为其重写equals()方法,.........【阅读全文】