Chinaunix首页 | 论坛 | 博客
  • 博客访问: 427880
  • 博文数量: 54
  • 博客积分: 610
  • 博客等级: 上士
  • 技术积分: 721
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-24 10:52
文章分类

全部博文(54)

文章存档

2013年(27)

2012年(11)

2011年(16)

发布时间: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.........【阅读全文】

阅读(1413) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(1605) | 评论(0) | 转发(0)

发布时间:2013-05-24 17:56:16

点击(此处)折叠或打开public class Test {    public static void main(String[] args) {        Dog dog = new Dog();        dog.call();.........【阅读全文】

阅读(1137) | 评论(0) | 转发(0)

发布时间:2013-05-24 15:23:34

点击(此处)折叠或打开public class TestCodeSeg{    static    {        System.out.println("1");    }.........【阅读全文】

阅读(1200) | 评论(0) | 转发(0)

发布时间:2013-05-22 20:00:55

众所周之,String 、Math、还有Integer、Double。。。。等这些封装类重写了Object中的equals()方法,让它不再比较句柄(引用),而是比较对象中实际包含的整数的值,即比较的是内容。而Object的equals()方法比较的是地址值。 一般来说,如果你要把一个类的对象放入容器中,那么通常要为其重写equals()方法,.........【阅读全文】

阅读(1600) | 评论(2) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册