久久久久久久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 超出范圍的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

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

                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 數(shù)據(jù)類型稱為 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;
                

                推薦答案

                在末尾加一個(gè)大寫的L:

                long value = 9223372036854775807L;
                

                否則,編譯器將嘗試將文字解析為 int,因此會(huì)出現(xiàn)錯(cuò)誤消息

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

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

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

                相關(guān)文檔推薦

                How can I detect integer overflow on 32 bits int?(如何檢測(cè) 32 位 int 上的整數(shù)溢出?)
                Local variables before return statements, does it matter?(return 語(yǔ)句之前的局部變量,這有關(guān)系嗎?)
                How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個(gè)隨機(jī)打亂數(shù)字的 int 數(shù)組)
                Inconsistent behavior on java#39;s ==(java的行為不一致==)
                Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲(chǔ)為 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>
                        • 主站蜘蛛池模板: 国产精品一区二区三 | 久久久成人精品 | 人人天天操 | 国产精久久久久久 | 久久精品屋| 久久在线看 | 久久综合一区 | 亚洲天堂影院 | 懂色中文一区二区在线播放 | 亚洲欧美日韩在线一区二区 | 中文字幕亚洲在线 | 成年网站在线观看 | av影音资源 | 日韩精品无码一区二区三区 | 少妇特黄a一区二区三区88av | 国产 亚洲 网红 主播 | 欧美一区二区三区在线观看视频 | 日韩在线视频观看 | 国产精品视频久久久 | 精品国产乱码一区二区三 | 日本一区二区高清视频 | 97精品国产97久久久久久免费 | 精品欧美一区二区三区久久久小说 | 久草热视频 | 最新黄色在线观看 | 欧美一二三区 | 国产在线观看一区二区 | 久久久久久国产精品免费免费 | 最新日韩在线 | 美女视频黄色的 | 亚洲国产成人精品女人久久久 | 久久久久成人精品亚洲国产 | 精品国产乱码久久久久久果冻传媒 | 黄色综合| 成人欧美一区二区三区白人 | 毛片视频网址 | 国产精品久久久久久 | 欧美激情在线一区二区三区 | 天天干,夜夜操 | 日韩欧美精品 | 欧美精品片 |