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

<tfoot id='Gu3nm'></tfoot>

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

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

    1. <small id='Gu3nm'></small><noframes id='Gu3nm'>

        <legend id='Gu3nm'><style id='Gu3nm'><dir id='Gu3nm'><q id='Gu3nm'></q></dir></style></legend>
      1. 用java中的char變量計算

        Calculating with the char variable in java(用java中的char變量計算)

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

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

          <tfoot id='lVZjj'></tfoot>
            <bdo id='lVZjj'></bdo><ul id='lVZjj'></ul>

          • <legend id='lVZjj'><style id='lVZjj'><dir id='lVZjj'><q id='lVZjj'></q></dir></style></legend>
              <tbody id='lVZjj'></tbody>

                • 本文介紹了用java中的char變量計算的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個學校作業,其中一項任務是解釋許多微小的計算,并解釋為什么 java 給你它給你的輸出..

                  I have an assignment for school, and one of the tasks is to explain a lot of tiny calculations and explaining why java gives you the output it gives you..

                  其中一項計算是:

                  1 + '2' + 3

                  1 + '2' + 3

                  這對我來說是一個詞匯錯誤,因為老師為我的系統使用了錯誤的撇號",但我已經和其他同學交談過,他們告訴我他們得到了一個實際的輸出,所以我開始閱讀它,并發現它應該表示一個 char 變量,并且我還發現了系統特定類型,所以我更改了符號以適用于我的系統,現在我得到了答案 54..

                  which for me gives a lexical error, as the teacher used the wrong "apostrophes" for my system, but I've talked to other fellow students and they told me they got an actual output, so I started reading about it, and found out that it is supposed to signify a char variable, and I also found out about the system specific types, so I changed the signs to work for my system, and now I get the answer 54..

                  我看不到其中的邏輯,我嘗試用 char 變量在 Google 上添加/計算/數學,但沒有找到任何可以很好地解釋它的東西..

                  and I cannot see the logic in it, and I've tried to google adding/calculating/math with char variables, and have found nothing that explains it well..

                  所以我求助于編碼人員,有一天我可能會成為其中的一員,以幫助我理解其中的邏輯..

                  So I turn to you, the people of coding, that I one day might be a part of to help me understand the logic of this..

                  這開始是一個家庭作業,我可能只是回答它給出了一個詞法錯誤,因為我的編譯器不理解這個符號,但現在它已經達到了我的好奇心,我真的很想知道如何java設法得到這個答案..

                  this started out as a homework assignment that I probably could have gotten through by just answering that it gives a lexical error because my compiler doesn't understand the symbol, but now it's peaked my curiosity, and I really want to know how java manages to get this answer..

                  感謝您對此事的任何幫助!:)

                  thank you for any help on the matter! :)

                  我可以看到我無法制作作業"標簽,所以我希望我可以把它放在這里:)

                  I can see that I couldn't make a 'homework' tag, so I hope it's okay that I put it here :)

                  推薦答案

                  在 Java 中,chars 可以通過 UTF-16 直接映射到 ints.但是,對于大多數常見字符,將 char 值轉換為 int 會在 ascii 表中生成它的索引.+ 不是對字符的操作,而是對整數的操作.因此,java 采用 2 并在思考我無法添加這個"之后,意識到如果將其強制轉換為 int,它可以添加它.

                  In Java, chars have a direct mapping to ints by UTF-16. For most common characters, though, casting a char value to an int yields its index on the ascii table. + isn't an operation on chars, but it is an operation for ints. Therefore, java is taking the 2 and after thinking "I can't add this", realizes it can add it if it casts it to an int.

                  正如您在表中看到的,2"的索引為 50,因此 1 + 50 + 3 = 54.

                  As you can see in the table, '2' has a index of 50, thus 1 + 50 + 3 = 54.

                  這篇關于用java中的char變量計算的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  quot;Char cannot be dereferencedquot; error(“Char 不能被取消引用錯誤)
                  Java Switch Statement - Is quot;orquot;/quot;andquot; possible?(Java Switch 語句 - 是“或/“和可能的?)
                  Java Replace Character At Specific Position Of String?(Java替換字符串特定位置的字符?)
                  What is the type of a ternary expression with int and char operands?(具有 int 和 char 操作數的三元表達式的類型是什么?)
                  Read a text file and store every single character occurrence(讀取文本文件并存儲出現的每個字符)
                  Why do I need to explicitly cast char primitives on byte and short?(為什么我需要在 byte 和 short 上顯式轉換 char 原語?)
                    <bdo id='N5jOL'></bdo><ul id='N5jOL'></ul>

                    <tfoot id='N5jOL'></tfoot>

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

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

                            主站蜘蛛池模板: 亚洲成av人影片在线观看 | 色天天综合 | 日韩免费福利视频 | 粉嫩av在线| 久久婷婷国产麻豆91 | 欧美中文字幕 | 国产精品精品久久久 | 午夜成人免费视频 | 国产视频在线观看一区二区三区 | 91在线视频观看 | 亚洲精品欧美一区二区三区 | 日本一区二区不卡视频 | 国产亚洲精品精品国产亚洲综合 | 欧美www在线观看 | 日韩在线播放视频 | 久草在线中文888 | 亚洲精品一区二三区不卡 | 综合二区 | 国内精品视频免费观看 | 婷婷色成人 | 高清久久久 | 久久久噜噜噜久久中文字幕色伊伊 | 色999视频 | 亚洲视频中文字幕 | 亚洲天堂中文字幕 | 红桃成人在线 | 国产乱码精品一区二区三区中文 | 男女网站免费 | 男女羞羞网站 | 夜操 | 精品久久久久久久 | 国产区在线看 | 免费看黄色视屏 | 日韩亚洲视频在线 | 精品国产乱码久久久久久88av | 日韩一区二区在线观看视频 | 天天插天天操 | 欧美在线亚洲 | 国产欧美久久一区二区三区 | 成人久久久 | 日韩在线不卡 |