Java的泛型是什么呢, 就是类型的参数化,也就是原本该是确定类型的地方换成了变量,把类型的确定时间向后延迟了。
在之前,学过“重载”的概念,重载是什么呢,举例来说
public class Test{
// 处理整型数据
void receive(int i) {
System.out.println("Received one int data");
System.ou...
分类:
编程语言 时间:
2014-07-22 23:04:34
阅读次数:
324
Agri-Net
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 36780
Accepted: 14825
Description
Farmer John has been elected mayor of his town! One of his campa...
分类:
其他好文 时间:
2014-07-22 23:04:15
阅读次数:
229
Little Vasya has received a young builder’s kit. The kit consists of several wooden bars, the lengths of all of them are known. The bars can be put one on the top of the other if their lengths are the...
分类:
其他好文 时间:
2014-07-22 23:01:53
阅读次数:
323
Problem I
Automatic Poetry
Input: standard input
Output: standard output
Time Limit: 2 seconds
Memory Limit: 32 MB
“Oh God”, Lara Croft exclaims, “it’s one of these dumb rid...
分类:
其他好文 时间:
2014-05-02 22:51:52
阅读次数:
352
4月30日消息,百视通今日与微软共同宣布,于今年9月在华发布Xbox
One。这是继百视通与微软2013年9月成立合资公司后,双方合作的又一进展。微软副总裁,硬件及设计工作室部门主管尤瑟夫 ?梅赫迪(Yusuf
Mehdi)表示:“Xbox One登陆中国对于微软及整个行业是重要里程碑,百视通是微软...
分类:
其他好文 时间:
2014-05-02 09:34:44
阅读次数:
329
oracle db打one-off-patch 一例...
分类:
数据库 时间:
2014-05-02 06:45:41
阅读次数:
399
Say you have an array for which theithelement
is the price of a given stock on dayi.If you were only permitted to complete at
most one transaction (ie...
分类:
其他好文 时间:
2014-05-02 00:37:20
阅读次数:
349
题目: Given a string S, find the longest palindromic
substring in S. You may assume that the maximum length of S is 1000, and there
exists one unique lo...
分类:
其他好文 时间:
2014-05-01 20:07:13
阅读次数:
429
RecursionIt is legal for one function to call
another; it is also legal for a function to call itself. It may not be obvious
why what is a good thing,...
分类:
其他好文 时间:
2014-05-01 18:40:44
阅读次数:
302
Crossing River
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 10212
Accepted: 3855
Description
A group of N people wishes to go across a river with only one...
分类:
其他好文 时间:
2014-04-30 22:21:38
阅读次数:
212