• <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 to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                  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>