1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問(wèn)題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
      利用java怎么將二維數(shù)組轉(zhuǎn)換為json

      這篇文章將為大家詳細(xì)講解有關(guān)利用java怎么將二維數(shù)組轉(zhuǎn)換為json,文章內(nèi)容質(zhì)量較高,因此小編分享給大家做個(gè)參考,希望大家閱讀完這篇文章后對(duì)相關(guān)知識(shí)有一定的了解。

      成都創(chuàng)新互聯(lián)-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價(jià)比武陵源網(wǎng)站開(kāi)發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫(kù),直接使用。一站式武陵源網(wǎng)站制作公司更省心,省錢(qián),快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋武陵源地區(qū)。費(fèi)用合理售后完善,10年實(shí)體公司更值得信賴。

      具體方法如下:

      package Tsets;
      public class erweiTojson {
       public static void main(String[] args) {
        String[][] blogList = {
         {"2008/07/07", "NetBeans New and Cool", "Tim Boudreau"},
         {"2008/07/07", "NetBeans Mobility", "Ada Li"},
         {"2008/07/07", "Creating Web 2.0 Rich Internet Applications", "Michael Li"},
         {"2008/07/08", "AJAX and JSF", "Ada Li"},
         {"2008/07/09", "Ruby on Rails in the Enterprise", "Liang Ye"},
         {"2008/07/09", "Beans Binding and the Swing Application Framework", "Joey Shen"}
        };
        StringBuffer sb = new StringBuffer();
        boolean first = true;
        sb.append("[");
        for (int i = 0; i < blogList.length; i++) {
         String[] blogItem = blogList[i];
         if (!first) {
          sb.append(",");
         }
         sb.append("{");
         sb.append("postdate: '" + blogItem[0] + "', ");
         sb.append("title: '" + blogItem[1] + "', ");
         sb.append("author: '" + blogItem[2] + "' ");
         sb.append("}");
         first = false;
        }
        sb.append("]");
        System.out.println(sb.toString());
       }
      }

      運(yùn)行結(jié)果:

      代碼如下:
      [{postdate: '2008/07/07', title: 'NetBeans New and Cool', author: 'Tim Boudreau' },{postdate: '2008/07/07', title: 'NetBeans Mobility', author: 'Ada Li' },{postdate: '2008/07/07', title: 'Creating Web 2.0 Rich Internet Applications', author: 'Michael Li' },{postdate: '2008/07/08', title: 'AJAX and JSF', author: 'Ada Li' },{postdate: '2008/07/09', title: 'Ruby on Rails in the Enterprise', author: 'Liang Ye' },{postdate: '2008/07/09', title: 'Beans Binding and the Swing Application Framework', author: 'Joey Shen' }]

      關(guān)于利用java怎么將二維數(shù)組轉(zhuǎn)換為json就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到。


      分享標(biāo)題:利用java怎么將二維數(shù)組轉(zhuǎn)換為json
      本文鏈接:http://ef60e0e.cn/article/ppecsc.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        宁南县| 嘉峪关市| 尉犁县| 阿拉尔市| 富平县| 昂仁县| 北流市| 侯马市| 乌拉特前旗| 建昌县| 和平县| 吉安市| 通州区| 张掖市| 永善县| 新源县| 丹寨县| 金门县| 肃宁县| 永清县| 阳谷县| 冀州市| 塔河县| 孙吴县| 阜南县| 瓦房店市| 上饶市| 丽水市| 南康市| 新邵县| 龙山县| 克东县| 子长县| 沅陵县| 汪清县| 康乐县| 休宁县| 西林县| 邛崃市| 乐平市| 盐边县|