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

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

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

      1. <tfoot id='lYb8o'></tfoot>

        如何在android中提取這個字符串變量?

        How to extract this string variable in android?(如何在android中提取這個字符串變量?)
      2. <small id='wHSNM'></small><noframes id='wHSNM'>

            <tbody id='wHSNM'></tbody>

        1. <legend id='wHSNM'><style id='wHSNM'><dir id='wHSNM'><q id='wHSNM'></q></dir></style></legend>
            <bdo id='wHSNM'></bdo><ul id='wHSNM'></ul>

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

                • 本文介紹了如何在android中提取這個字符串變量?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  String test=
                        ["1","Low-level programming language",true],
                        ["2","High level programming language",false],
                        ["3","Machine language",false],["4","All of the above",false],
                        ["5","None of these",false]
                  

                  我想把這個文件像[1","Low-level programming language",true]等分成5種字符串變量.

                  I want to separate this file like [1","Low-level programming language",true] and others into 5 types of string variables.

                  推薦答案

                  你可以在一個簡單的正則表達式上拆分:

                  You could split on a simple regex:

                  String [] splitStrings = test.split("\],\[");
                  

                  你不想只用逗號分割,因為你只想要方括號之間的逗號.

                  You don't want to split on just comma because you only want the commas between the square brackets.

                  這是一個更完整的示例(如果需要,還有一個正則表達式可以保留括號)

                  Here is a more complete example (and a regex that holds onto the brackets if you want)

                  public static void main(String []args){
                      String test="["1","Low-level programming language",true],["2","High level programming language",false],["3","Machine language",false],["4","All of the above",false],["5","None of these",false]";
                      String [] splitStrings = test.split("(?!\]),(?=\[)");
                  
                      System.out.println(splitStrings[0]);
                      System.out.println(splitStrings[1]);
                      System.out.println(splitStrings[2]);
                      System.out.println(splitStrings[3]);
                      System.out.println(splitStrings[4]);
                  }
                  

                  這篇關(guān)于如何在android中提取這個字符串變量?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關(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)建一個隨機打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲為 int?)
                • <tfoot id='Rbssx'></tfoot>
                  <legend id='Rbssx'><style id='Rbssx'><dir id='Rbssx'><q id='Rbssx'></q></dir></style></legend>
                      <tbody id='Rbssx'></tbody>
                  • <small id='Rbssx'></small><noframes id='Rbssx'>

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

                          1. 主站蜘蛛池模板: 污污的网站在线观看 | 99热碰| 亚洲综合色婷婷 | 9久久精品 | 日韩在线中文字幕 | 久久久久电影 | 国产一级片91 | h视频在线免费观看 | 日本一区二区在线视频 | 色天堂影院 | 欧美国产精品 | 日本精品久久久久久久 | 国产在线播放一区二区三区 | 精品福利一区二区三区 | 亚洲黄色av | 日韩精品一区中文字幕 | 久久久性 | 日本三级线观看 视频 | 成人在线小视频 | 免费一区 | 亚洲a在线观看 | 国产激情视频在线免费观看 | 综合久久综合久久 | 欧美理论在线观看 | 黄色网址在线免费播放 | 天天干夜夜操 | 亚洲中字在线 | 国产精品视频在线观看 | 中文字幕一区二区三区四区五区 | 18gay男同69亚洲网站 | 精品久久九 | 免费视频一区二区三区在线观看 | 精品国产免费人成在线观看 | av三级| 国产精品a久久久久 | 黄色国产大片 | 国产福利91精品一区二区三区 | 狠狠操狠狠干 | 亚洲三级在线观看 | 国产中文字幕在线观看 | 亚洲国产成人精品久久 |