• <small id='FFxEs'></small><noframes id='FFxEs'>

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

      1. Java 是否具有 Integer、Float、Double、Long 的可变类型?

        Does Java have mutable types for Integer, Float, Double, Long?(Java 是否具有 Integer、Float、Double、Long 的可变类型?)
      2. <legend id='H06N3'><style id='H06N3'><dir id='H06N3'><q id='H06N3'></q></dir></style></legend>

            <tfoot id='H06N3'></tfoot>
              <tbody id='H06N3'></tbody>
            • <small id='H06N3'></small><noframes id='H06N3'>

                <bdo id='H06N3'></bdo><ul id='H06N3'></ul>

                1. <i id='H06N3'><tr id='H06N3'><dt id='H06N3'><q id='H06N3'><span id='H06N3'><b id='H06N3'><form id='H06N3'><ins id='H06N3'></ins><ul id='H06N3'></ul><sub id='H06N3'></sub></form><legend id='H06N3'></legend><bdo id='H06N3'><pre id='H06N3'><center id='H06N3'></center></pre></bdo></b><th id='H06N3'></th></span></q></dt></tr></i><div id='H06N3'><tfoot id='H06N3'></tfoot><dl id='H06N3'><fieldset id='H06N3'></fieldset></dl></div>
                  本文介绍了Java 是否具有 Integer、Float、Double、Long 的可变类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想使用 Integer 之类的可变版本.我必须使用这些类(如下)还是 Java 有内置的东西?

                  I am in a situation where I want to use mutable versions of things like Integer. Do I have to use these classes (below) or does Java have something built in?

                  http://www.java2s.com/Code/Java/数据类型/Amutableintwrapper.htm

                  推荐答案

                  不,Java 没有这些内置功能.这是有原因的.使用可变类型是危险的,因为它们很容易被滥用.此外,它很容易实现.例如,commons-lang 有一个 MutableInt.

                  No, Java doesn't have these built in. And that is for a reason. Using mutable types is dangerous, as they can easily be misused. Additionally, it is really easy to implement it. For example, commons-lang has a MutableInt.

                  这篇关于Java 是否具有 Integer、Float、Double、Long 的可变类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How can I detect integer overflow on 32 bits int?(如何检测 32 位 int 上的整数溢出?)
                  Local variables before return statements, does it matter?(return 语句之前的局部变量,这有关系吗?)
                  How to convert Integer to int?(如何将整数转换为整数?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在给定范围内创建一个随机打乱数字的 int 数组)
                  Inconsistent behavior on java#39;s ==(java的行为不一致==)
                  Why is Java able to store 0xff000000 as an int?(为什么 Java 能够将 0xff000000 存储为 int?)

                  1. <small id='52uI9'></small><noframes id='52uI9'>

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

                          <tfoot id='52uI9'></tfoot>
                          • <legend id='52uI9'><style id='52uI9'><dir id='52uI9'><q id='52uI9'></q></dir></style></legend>