• <i id='hgpzG'><tr id='hgpzG'><dt id='hgpzG'><q id='hgpzG'><span id='hgpzG'><b id='hgpzG'><form id='hgpzG'><ins id='hgpzG'></ins><ul id='hgpzG'></ul><sub id='hgpzG'></sub></form><legend id='hgpzG'></legend><bdo id='hgpzG'><pre id='hgpzG'><center id='hgpzG'></center></pre></bdo></b><th id='hgpzG'></th></span></q></dt></tr></i><div id='hgpzG'><tfoot id='hgpzG'></tfoot><dl id='hgpzG'><fieldset id='hgpzG'></fieldset></dl></div>
    <tfoot id='hgpzG'></tfoot>

    1. <small id='hgpzG'></small><noframes id='hgpzG'>

      • <bdo id='hgpzG'></bdo><ul id='hgpzG'></ul>
        <legend id='hgpzG'><style id='hgpzG'><dir id='hgpzG'><q id='hgpzG'></q></dir></style></legend>

        集合和列表有什么区别?

        What is the difference between Set and List?(集合和列表有什么区别?)

        <tfoot id='U1Vaq'></tfoot>

            • <bdo id='U1Vaq'></bdo><ul id='U1Vaq'></ul>
              • <small id='U1Vaq'></small><noframes id='U1Vaq'>

                  <tbody id='U1Vaq'></tbody>

                • <i id='U1Vaq'><tr id='U1Vaq'><dt id='U1Vaq'><q id='U1Vaq'><span id='U1Vaq'><b id='U1Vaq'><form id='U1Vaq'><ins id='U1Vaq'></ins><ul id='U1Vaq'></ul><sub id='U1Vaq'></sub></form><legend id='U1Vaq'></legend><bdo id='U1Vaq'><pre id='U1Vaq'><center id='U1Vaq'></center></pre></bdo></b><th id='U1Vaq'></th></span></q></dt></tr></i><div id='U1Vaq'><tfoot id='U1Vaq'></tfoot><dl id='U1Vaq'><fieldset id='U1Vaq'></fieldset></dl></div>
                  <legend id='U1Vaq'><style id='U1Vaq'><dir id='U1Vaq'><q id='U1Vaq'></q></dir></style></legend>

                  本文介绍了集合和列表有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Set<E>List<E>接口的根本区别是什么?

                  What is the fundamental difference between the Set<E> and List<E> interfaces?

                  推荐答案

                  List 是一个有序的元素序列,而 Set 是一个不同的无序元素列表(谢谢,奎因·泰勒).

                  List is an ordered sequence of elements whereas Set is a distinct list of elements which is unordered (thank you, Quinn Taylor).

                  List<E>:

                  有序集合(也称为顺序).该界面的用户有精确的控制在哪里列出每个插入的元素.这用户可以通过他们的访问元素整数索引(列表中的位置),并在列表中搜索元素.

                  An ordered collection (also known as a sequence). The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index (position in the list), and search for elements in the list.

                  Set<E>:

                  一个集合不包含重复元素.更正式地说,集合不包含元素对 e1和 e2 使得 e1.equals(e2),并且在最多一个空元素.正如所暗示的那样它的名字,这个接口模拟了数学集合抽象.

                  A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1 and e2 such that e1.equals(e2), and at most one null element. As implied by its name, this interface models the mathematical set abstraction.

                  这篇关于集合和列表有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Compiling C++ for the JVM(为 JVM 编译 C++)
                  Compile to java bytecode (without using Java)(编译成java字节码(不使用Java))
                  How to drive C#, C++ or Java compiler to compute 1+2+3+...+1000 at compile time?(如何在编译时驱动 C#、C++ 或 Java 编译器计算 1+2+3+...+1000?)
                  Java ClassLoader: load same class twice(Java ClassLoader:两次加载相同的类)
                  How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                  Java quot;The blank final field may not have been initializedquot; Anonymous Interface vs Lambda Expression(Java“可能尚未初始化空白的最终字段匿名接口与 Lambda 表达式)
                  <legend id='dviuh'><style id='dviuh'><dir id='dviuh'><q id='dviuh'></q></dir></style></legend>

                  <small id='dviuh'></small><noframes id='dviuh'>

                        <tbody id='dviuh'></tbody>
                    1. <i id='dviuh'><tr id='dviuh'><dt id='dviuh'><q id='dviuh'><span id='dviuh'><b id='dviuh'><form id='dviuh'><ins id='dviuh'></ins><ul id='dviuh'></ul><sub id='dviuh'></sub></form><legend id='dviuh'></legend><bdo id='dviuh'><pre id='dviuh'><center id='dviuh'></center></pre></bdo></b><th id='dviuh'></th></span></q></dt></tr></i><div id='dviuh'><tfoot id='dviuh'></tfoot><dl id='dviuh'><fieldset id='dviuh'></fieldset></dl></div>
                        <bdo id='dviuh'></bdo><ul id='dviuh'></ul>

                        <tfoot id='dviuh'></tfoot>