Cacti监控Linux主机 脚本
2016-01-21 14:29
323 查看
打开jdk1.6源码,看到这个片段:
public interface List<E> extends Collection<E> {
Iterator<E> iterator();
boolean containsAll(Collection<?> c);
}
其中用尖括号括起来的就是泛型,因此我们可以像这样的使用:
List<Integer> intList = new ArrayList<Integer>();
List<String> strList = new ArrayList<String>();
public interface List<E> extends Collection<E> {
Iterator<E> iterator();
boolean containsAll(Collection<?> c);
}
其中用尖括号括起来的就是泛型,因此我们可以像这样的使用:
List<Integer> intList = new ArrayList<Integer>();
List<String> strList = new ArrayList<String>();
相关文章推荐
- CentOS6.6 彻底删除默认mysql5.1
- Centos6.6系统的安装
- Linux 双物理网卡绑定成一个虚拟网卡
- linux 获取帮助文档
- CentOS7配置Yum报404错误
- Linux目录结构
- Linux 使用wget 命令下载JDK的方法
- linux整理笔记:root用户上传的文件,其他用户无法覆盖和删除
- linux命令: mount
- Windows/Linux下引用jar包,并用javac/java编译运行
- Linux内核的进程、线程问题
- linux系统中如何查看日志 (常用命令)
- Linux文件和目录管理
- Linux获取外网IP
- 《完全用Linux工作》作者:王垠
- Linux下比find快N倍的文件查找命令
- Tomact8部署在linux下启动很慢详解
- Linux命令之文本处理(二)
- linux-0.12/boot/head.s
- centos 7 安装 桌面环境