• <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 的可变类型?

        时间:2023-05-29
      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 的可变类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Java - 将 int 更改为 ascii 下一篇:意外结果导致长/整数除法

                  相关文章

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

                    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>
                    2. <legend id='52uI9'><style id='52uI9'><dir id='52uI9'><q id='52uI9'></q></dir></style></legend>