摘要: There is always one things we donot notice---time ,which is the most important to all of us.By watching others' life, communicating with the elders,i truely realize that i should not waste any time of my life,even just one second.And in lots of people's eyes,i am young now,i should do as oth 阅读全文
posted @ 2013-12-07 21:05 Allen-Peng Yu 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 接上篇:java集合类学习(二)Talk about “Iterator”: 任何容器类,在插入元素后,还需要取回元素,因为这是容器的最基本工作。对于一般的容器,插入有add()相关方法(List,Set),put()相关方法(Map),取出元素也都有get()相关方法,但这有个缺点,就是使用容器必须对容器的确切类型编程,这导致代码重用性差,因为我们在获取元素时并不关心容器的类型,因此,为解决这个情况,迭代器应运而生。 所谓迭代器,也是一个对象,它的作用是遍历并选择序列中的对象,而程序员不需要知道该序列的底层结构。迭代器统一了容器的访问方式,并且被称为“轻量级对象”,因为创建它的代价很... 阅读全文
posted @ 2013-12-07 19:44 Allen-Peng Yu 阅读(1121) 评论(0) 推荐(0) 编辑
摘要: 接上篇 java集合类(一)List接口继承了Collection接口和Iterable接口,即同样含有Collection和 Iterable的特性,还有方法,其基本方法有: 1)有关添加: boolean add(E e):添加元素 void add(int index,E element):在特定位置添加元素 boolean addAll(Collection c):添加集合中所有的元素 boolean addAll(int index,Collection c):在特定位置添加一组元素 2)有关清除:void clear(), E remove(int index... 阅读全文
posted @ 2013-12-06 21:42 Allen-Peng Yu 阅读(612) 评论(0) 推荐(0) 编辑
摘要: Java Paas shootout (@IBM developer)Cloud computing is always a hot topic around IT field today.How can it bring to us ?How can it change our life? No answers..."The Java ecosystem is rapidly expanding to support developers who want to build, test, or deploy Java applications on the cloud. Espec 阅读全文
posted @ 2013-12-02 16:10 Allen-Peng Yu 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 今天我们先讲一下Collection:Collection和Collections的区别:java.util.Collection是一种java集合接口,它提供了对集合对象的基本操作通用接口方法,同时它还有很多具体实现: 注:以上图片只列举常用集合类java.util.Collections是一个包装类,它包含许多有关集合操作的静态多态方法,此类不能实例化,它就像个工具类,服务与java的Collection。有关Collections的具体方法可参考JDK说明文档(部分也可见),下面我举出几个方法示例: import java.util.Collection;import jav... 阅读全文
posted @ 2013-12-01 15:20 Allen-Peng Yu 阅读(740) 评论(0) 推荐(0) 编辑
摘要: "Mesaging service Snapchat reportedly turned down a $3 billion offer from Facebook?!"Everyone has his opinion about this,but in my personal eyes,life is to take risks,and it's not all about instant money.Nobody knows about the future in advance.Althought everything may change in just o 阅读全文
posted @ 2013-11-15 09:00 Allen-Peng Yu 阅读(304) 评论(0) 推荐(0) 编辑
摘要: China is a land of opportunity.Following the development of China,every sector has made their contribution,but for the future,IT sector may be the most important one.What makes us unsatisfied is that the innovation and the core competiviness of domestic information technology is weak,compared to o.. 阅读全文
posted @ 2013-11-15 00:28 Allen-Peng Yu 阅读(288) 评论(0) 推荐(0) 编辑
摘要: As we all know,we are in a big data age now."Every sword has two slides",as a ITer,we should have a professional perspective to all new high-tech things.1.What the big data can do for us?You know,no matter what industry,there may be lost of data(simple / complicated) needed to be processed 阅读全文
posted @ 2013-11-14 15:48 Allen-Peng Yu 阅读(149) 评论(0) 推荐(0) 编辑
摘要: It doesn't matter what programming language u use,it's all about the usage of variable---storage management.1.Static & Dynamicstatic: Global constants and the other information/data generated by compiler are allocated static storage. Static storage is built before any execution,and they 阅读全文
posted @ 2013-11-14 10:43 Allen-Peng Yu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Compared to CSDN blog, althought it's my first time to use CNBlog,i felt it makes me more comfortable,no matter from content,UI,advertising,etc. My CnBlog career is getting started.1) i will try my best to write blog by using English;2)my blog is all created by myself, 'cause i try not to fo 阅读全文
posted @ 2013-11-13 23:32 Allen-Peng Yu 阅读(140) 评论(1) 推荐(0) 编辑