久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <tfoot id='TNQoN'></tfoot>

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

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

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

    2. <legend id='TNQoN'><style id='TNQoN'><dir id='TNQoN'><q id='TNQoN'></q></dir></style></legend>

      int 類型的字面量 xyz 超出范圍

      The literal xyz of type int is out of range(int 類型的字面量 xyz 超出范圍)

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

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

              • 本文介紹了int 類型的字面量 xyz 超出范圍的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我目前正在使用 Java 中的數據類型,如果我理解正確,類型 long 接受介于 -9,223,372,036,854,775,808 到 +9,223,372,036,854,775,807 之間的值.現在正如您在下面看到的,我創建了一個名為 testLonglong 變量,盡管當我插入 9223372036854775807 作為值時,我收到一條錯誤消息:

                I am working with data types at the moment in Java, and if I have understood correctly the type long accepts a value between the ranges of -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807. Now as you can see below, I have create a long variable called testLong, although when I insert 9223372036854775807 as the value, I get an error stating:

                int 類型的字面量 9223372036854775807 超出范圍.

                The literal 9223372036854775807 of the type int is out of range.

                我不知道為什么它把 long 數據類型稱為 int.

                I don't know why it is referring to the long data type as an int.

                有人有什么想法嗎?

                代碼:

                char testChar = 01;
                byte testByte = -128;
                int testInt = -2147483648;
                short testShort = -32768;
                long testLong = 9223372036854775807;
                float testFoat;
                double testDouble = 4.940656458412;
                boolean testBool = true;
                

                推薦答案

                在末尾加一個大寫的L:

                long value = 9223372036854775807L;
                

                否則,編譯器將嘗試將文字解析為 int,因此會出現錯誤消息

                Otherwise, the compiler will try to parse the literal as an int, hence the error message

                這篇關于int 類型的字面量 xyz 超出范圍的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                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?)

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

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

                      <tfoot id='rZL0q'></tfoot>
                      • <legend id='rZL0q'><style id='rZL0q'><dir id='rZL0q'><q id='rZL0q'></q></dir></style></legend>
                          <tbody id='rZL0q'></tbody>
                          <bdo id='rZL0q'></bdo><ul id='rZL0q'></ul>
                        • 主站蜘蛛池模板: 欧美国产免费 | 人人做人人澡人人爽欧美 | 亚洲网在线 | 久久久久综合 | 日本粉嫩一区二区三区视频 | 中文字幕乱码一区二区三区 | 午夜丁香视频在线观看 | 亚洲 欧美 综合 | 国产成人精品久久二区二区91 | 91精品国产91久久综合桃花 | 国产精品视频中文字幕 | 日日夜夜天天干 | 亚洲男人天堂 | 天堂va在线观看 | 色综合成人网 | 久久久黑人 | 欧美xxxx色视频在线观看免费 | 在线观看视频一区二区三区 | 欧美xxxx在线 | 亚洲小视频在线观看 | 亚洲网址在线观看 | 亚洲免费视频在线观看 | 狠狠色综合久久婷婷 | 欧美专区在线 | 噜噜噜噜狠狠狠7777视频 | 完全免费在线视频 | 欧美色综合一区二区三区 | 在线观看国产www | 欧美v免费| 国产日韩久久 | 网站黄色av | 在线国产视频 | 免费看国产精品视频 | 国产精品免费一区二区三区四区 | 天天玩天天干天天操 | 久久成人一区 | 性生生活大片免费看视频 | 中文字幕国产一区 | 欧美成人免费在线 | 91成人精品 | 蜜桃臀av一区二区三区 |