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

    • <bdo id='IG9UM'></bdo><ul id='IG9UM'></ul>

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

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

        Java Switch 語句 - 是“或"/“和"可能的?

        Java Switch Statement - Is quot;orquot;/quot;andquot; possible?(Java Switch 語句 - 是“或/“和可能的?)
        <legend id='7EJhh'><style id='7EJhh'><dir id='7EJhh'><q id='7EJhh'></q></dir></style></legend>
              <tbody id='7EJhh'></tbody>
            <i id='7EJhh'><tr id='7EJhh'><dt id='7EJhh'><q id='7EJhh'><span id='7EJhh'><b id='7EJhh'><form id='7EJhh'><ins id='7EJhh'></ins><ul id='7EJhh'></ul><sub id='7EJhh'></sub></form><legend id='7EJhh'></legend><bdo id='7EJhh'><pre id='7EJhh'><center id='7EJhh'></center></pre></bdo></b><th id='7EJhh'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7EJhh'><tfoot id='7EJhh'></tfoot><dl id='7EJhh'><fieldset id='7EJhh'></fieldset></dl></div>
              <bdo id='7EJhh'></bdo><ul id='7EJhh'></ul>

                1. <small id='7EJhh'></small><noframes id='7EJhh'>

                2. <tfoot id='7EJhh'></tfoot>
                3. 本文介紹了Java Switch 語句 - 是“或"/“和"可能的?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我實現了一個字體系統,它通過 char switch 語句找出要使用的字母.我的字體圖像中只有大寫字母.我需要做到這一點,例如,'a' 和 'A' 都具有相同的輸出.與其將案件數量增加 2 倍,不如說是以下內容:

                  I implemented a font system that finds out which letter to use via char switch statements. There are only capital letters in my font image. I need to make it so that, for example, 'a' and 'A' both have the same output. Instead of having 2x the amount of cases, could it be something like the following:

                  char c;
                  
                  switch(c){
                  case 'a' & 'A': /*get the 'A' image*/; break;
                  case 'b' & 'B': /*get the 'B' image*/; break;
                  ...
                  case 'z' & 'Z': /*get the 'Z' image*/; break;
                  }
                  

                  這在java中可能嗎?

                  Is this possible in java?

                  推薦答案

                  您可以通過省略 break; 語句來使用 switch-case fall through.

                  You can use switch-case fall through by omitting the break; statement.

                  char c = /* whatever */;
                  
                  switch(c) {
                      case 'a':
                      case 'A':
                          //get the 'A' image;
                          break;
                      case 'b':
                      case 'B':
                          //get the 'B' image;
                          break;
                      // (...)
                      case 'z':
                      case 'Z':
                          //get the 'Z' image;
                          break;
                  }
                  

                  ...或者您可以規范化為 小寫或大寫 切換之前.

                  ...or you could just normalize to lower case or upper case before switching.

                  char c = Character.toUpperCase(/* whatever */);
                  
                  switch(c) {
                      case 'A':
                          //get the 'A' image;
                          break;
                      case 'B':
                          //get the 'B' image;
                          break;
                      // (...)
                      case 'Z':
                          //get the 'Z' image;
                          break;
                  }
                  

                  這篇關于Java Switch 語句 - 是“或"/“和"可能的?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  quot;Char cannot be dereferencedquot; error(“Char 不能被取消引用錯誤)
                  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 原語?)
                  What#39;s the best way to check if a character is a vowel in Java?(在 Java 中檢查字符是否為元音的最佳方法是什么?)
                  <i id='rPdCX'><tr id='rPdCX'><dt id='rPdCX'><q id='rPdCX'><span id='rPdCX'><b id='rPdCX'><form id='rPdCX'><ins id='rPdCX'></ins><ul id='rPdCX'></ul><sub id='rPdCX'></sub></form><legend id='rPdCX'></legend><bdo id='rPdCX'><pre id='rPdCX'><center id='rPdCX'></center></pre></bdo></b><th id='rPdCX'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rPdCX'><tfoot id='rPdCX'></tfoot><dl id='rPdCX'><fieldset id='rPdCX'></fieldset></dl></div>

                    <tbody id='rPdCX'></tbody>

                      • <legend id='rPdCX'><style id='rPdCX'><dir id='rPdCX'><q id='rPdCX'></q></dir></style></legend><tfoot id='rPdCX'></tfoot>

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

                            <bdo id='rPdCX'></bdo><ul id='rPdCX'></ul>
                            主站蜘蛛池模板: 毛片网站在线观看 | 国产精品三级久久久久久电影 | 久久99精品久久 | 国产午夜精品一区二区三区 | 日韩在线观看网站 | 激情五月婷婷在线 | 久在线 | 成在线人视频免费视频 | 一级片av| av黄色在线观看 | 免费成人高清 | 国产1区在线 | 国产91视频播放 | 久久精品a级毛片 | 亚洲精美视频 | 国产中文区二幕区2012 | 国产精品高潮呻吟久久av黑人 | av在线视 | 久久精品免费 | 国产成人av在线播放 | 亚洲毛片在线观看 | 色婷婷激情综合 | 精品一区国产 | 国产一区二区三区久久久久久久久 | 999久久久国产精品 欧美成人h版在线观看 | 欧美在线资源 | 一区视频在线 | 99精品国产在热久久 | 操久久| 激情欧美日韩一区二区 | 综合久久亚洲 | 色视频一区二区 | 国产精品亚洲片在线播放 | 国产精品高潮呻吟久久 | 日韩精品视频在线观看一区二区三区 | 国产精品呻吟久久av凹凸 | 欧美精品一区二区免费 | 精品久久久网站 | 久热中文字幕 | 9191av| 一区二区三区视频在线观看 |