您的位置:首页 > 运维架构 > Linux

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>();

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: