亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 8262 | 回復(fù): 4
打印 上一主題 下一主題

求助!得到的下面的字符串如何存儲(chǔ)調(diào)用!!! [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2009-06-02 17:21 |只看該作者 |倒序?yàn)g覽
通過(guò)socket獲得下面的字符串:
gf_geoshare 300 0
gf_app_builder 100 0
gf_user_application 100 0
gf_charisma_attributemap 100 0
gf_iesx_autopix 100 0
gf_welledit_bkz 100 0
gf_basemap_plus 1200 0
gf_runtime 500 49
gf_runtime bsy_zc hp1083 6/2 8:09
gf_runtime dbcsq hp1012 6/2 9:06
gf_runtime dblbj hp1011 6/2 8:01
gf_runtime dbllj hp1012 6/2 8:15
gf_runtime dblxh hp1010 6/2 11:06
gf_runtime dblxx hp1012 6/2 8:52
gf_runtime dbly hp2036 6/2 10:32
gf_runtime dbwjl hp1012 6/2 8:21
gf_runtime dbxj hp1011 6/2 8:30
gf_runtime dbyhx hp1012 6/2 8:50
gf_runtime dbzlh hp1012 6/2 10:02
gf_runtime gf43user sjkgeoframe 6/2 8:18
gf_runtime glr_zg hp1014 6/2 8:42
gf_runtime hmmyg hp1017 6/1 8:44
gf_runtime hmrrj hp1078 6/2 8:42
gf_runtime hmsjl hp2044 6/2 8:10
gf_runtime hmsx hp1078 6/2 8:47
gf_runtime hmtmy hp1078 5/22 14:53
gf_runtime jch_zc hp1083 6/2 10:50
gf_runtime lbj_zg hp2045 5/31 15:19
gf_runtime lg_zg hp1010 6/2 9:38
gf_runtime lsx_zc hp1083 6/2 9:36
gf_runtime lxy_zg hp1077 6/2 7:57
gf_runtime nkk_zc hp1089 5/31 8:14
gf_runtime plm_zg hp1014 6/2 9:56
gf_runtime qy_zg hp1084 6/1 9:06
gf_runtime sjkhf hp1091 6/2 10:25
gf_runtime sxg_zg hp1070 6/1 10:18
gf_runtime szx_zg hp1084 6/1 7:55
gf_runtime wfx_zc hp1016 6/2 10:23
gf_runtime wxw_zc hp1089 6/2 9:02
gf_runtime xbfdy hp1073 5/31 9:11
gf_runtime xbhcs hp2040 5/31 9:05
gf_runtime xbllj hp1083 6/2 8:37
gf_runtime xblpp hp2040 5/26 8:47
gf_runtime xbmfl hp1088 6/1 8:12
gf_runtime xbqzp hp2040 6/2 10:26
gf_runtime xbyjq hp2044 5/31 15:04
gf_runtime xm_zg hp1015 5/31 17:09
gf_runtime ywy_zg hp1088 5/27 16:50
gf_runtime yxl_zg hp1083 6/2 10:42
gf_runtime zdr_zc hp1085 6/1 8:41
gf_runtime zhlhl hp1010 6/2 8:19
gf_runtime zhwfj hp1093 5/31 14:16
gf_runtime zhwsg hpzh1 6/1 7:59
gf_runtime zhy_zg hp1088 6/2 8:12
gf_runtime zxj_zc hp1089 6/1 9:50
gf_runtime zyt_zg hp1077 6/1 8:18
gf_runtime zzq_zg hp1088 6/2 9:04
gf_basemap 400 0
gf_hardcopy 600 0
gf_data_manager 500 7
gf_data_manager hmrrj hp1078 6/2 10:03
gf_data_manager lsx_zc hp1083 6/2 10:44
gf_data_manager lxy_zg hp1077 6/2 10:32
gf_data_manager sjkhf hp1091 6/2 10:28
gf_data_manager xbqzp hp2040 6/2 11:01
gf_data_manager zhwsg hpzh1 6/1 8:51
gf_data_manager zyt_zg hp1077 6/2 9:36
gf_dlis_util 600 0
gf_dlisu 600 0
gf_cps3_mapping 500 2
gf_cps3_mapping xbmfl hp1088 6/2 8:39
gf_cps3_mapping yxl_zg hp1083 6/2 11:02
gf_charisma_asap 100 0
gf_synthetics 1000 3
gf_synthetics nkk_zc hp1089 6/1 8:13
gf_synthetics sxg_zg hp1070 6/1 17:04
gf_synthetics wxw_zc hp1089 6/2 9:16
gf_geoviz_explore 1400 0
gf_geoviz 500 1
gf_geoviz hmmyg hp1017 6/1 8:45
gf_iesx_csa 500 2
gf_iesx_csa sxg_zg hp1070 6/2 9:01
gf_iesx_csa zyt_zg hp1077 6/1 15:22
gf_coreimage 100 0
gf_xsection 500 2
gf_xsection xm_zg hp1015 6/2 10:42
gf_xsection zzq_zg hp1088 6/2 9:20
gf_dimqc 100 0
gf_dip_image 100 0
gf_dip_image_AWS 100 0
gf_dip_image_HLS 100 0
gf_bornor 100 0
gf_elanplus 100 0
gf_ressum 300 1
gf_ressum ywy_zg hp1088 5/27 16:50
gf_charisma_hardcopyadv 100 0
gf_framework_3d 100 0
gf_modeling_office 200 0
gf_wellcomposite_plus 600 0
gf_charisma_seismicviewer 500 0
gf_welledit 900 0
gf_preplus 300 0
gf_petroviewplus 300 0
gf_charisma_main2d 400 0
gf_charisma_main3d 400 0
gf_iesx_seis2d 700 1
gf_iesx_seis2d gf43user sjkgeoframe 6/2 10:31
gf_iesx_seis3dv 700 39
gf_iesx_seis3dv bsy_zc hp1083 6/2 8:09
gf_iesx_seis3dv dbcsq hp1012 6/2 9:29
gf_iesx_seis3dv dblbj hp1011 6/2 10:20
gf_iesx_seis3dv dbllj hp1012 6/2 8:15
gf_iesx_seis3dv dblxh hp1010 6/2 11:06
gf_iesx_seis3dv dblxx hp1012 6/2 10:34
gf_iesx_seis3dv dbly hp2036 6/2 10:33
gf_iesx_seis3dv dbwjl hp1012 6/2 8:22
gf_iesx_seis3dv dbxj hp1011 6/2 8:30
gf_iesx_seis3dv dbyhx hp1012 6/2 8:51
gf_iesx_seis3dv glr_zg hp1014 6/2 8:43
gf_iesx_seis3dv hmrrj hp1078 6/2 8:43
gf_iesx_seis3dv hmsjl hp2044 6/2 8:11
gf_iesx_seis3dv jch_zc hp1083 6/2 10:51
gf_iesx_seis3dv lg_zg hp1010 6/2 9:38
gf_iesx_seis3dv lsx_zc hp1083 6/2 9:37
gf_iesx_seis3dv lxy_zg hp1077 6/2 8:57
gf_iesx_seis3dv nkk_zc hp1089 5/31 8:15
gf_iesx_seis3dv plm_zg hp1014 6/2 9:56
gf_iesx_seis3dv qy_zg hp1084 6/1 9:08
gf_iesx_seis3dv sxg_zg hp1070 6/1 10:19
gf_iesx_seis3dv szx_zg hp1084 6/2 7:54
gf_iesx_seis3dv wfx_zc hp1016 6/2 10:23
gf_iesx_seis3dv wxw_zc hp1089 6/2 9:03
gf_iesx_seis3dv xbfdy hp1073 6/2 8:56
gf_iesx_seis3dv xbhcs hp2040 5/31 9:05
gf_iesx_seis3dv xbllj hp1083 6/2 8:37
gf_iesx_seis3dv xbmfl hp1088 6/1 8:15
gf_iesx_seis3dv xbqzp hp2040 6/2 10:27
gf_iesx_seis3dv xbyjq hp2044 5/31 15:04
gf_iesx_seis3dv xm_zg hp1015 5/31 17:09
gf_iesx_seis3dv zdr_zc hp1085 6/2 7:58
gf_iesx_seis3dv zhlhl hp1010 6/2 8:20
gf_iesx_seis3dv zhwfj hp1093 5/31 14:23
gf_iesx_seis3dv zhwsg hpzh1 6/1 8:00
gf_iesx_seis3dv zhy_zg hp1088 6/2 8:13
gf_iesx_seis3dv zxj_zc hp1089 6/1 11:05
gf_iesx_seis3dv zyt_zg hp1077 6/1 11:02
gf_iesx_seis3dv zzq_zg hp1088 6/2 9:05
gf_charisma_geocube 100 0
gf_charisma_correlationmap 100 0
gf_reportgenerator 100 0
gf_geoplot 300 0
gf_data_functioning 700 0
gf_wellpix 200 0
gf_panorama 300 0
gf_lithotoolkit 600 0
gf_lo_lql 200 0
gf_lo_neuralnet 200 0
gf_log_property 200 0
gf_iesx_asap 100 0
gf_iesx_cormap 200 0
gf_iesx_seistie 400 0
gf_iesx_seisan 600 0
gf_indepth 100 0
gf_cps3_idgn_out 100 0
gf_lo_clustering 100 0
gf_lo_histogram 100 0
gf_charisma_mistie 100 0
gf_petrostat 100 0
gf_polaris 100 0
gf_sediview 100 0
gf_seisclass 100 0
gf_seisclass_explore 200 0
gf_sequence 100 0
gf_spectral_decomposition 100 1
gf_spectral_decomposition zyt_zg hp1077 6/1 15:25
gf_statpack 100 0
gf_strucview 100 0
gf_iesx_surfaceslice 100 0
gf_variance_cube 100 0
gf_wellsketch 100 0
gf_writeon 100 0

我要如何存儲(chǔ)才能實(shí)現(xiàn)表格顯示,當(dāng)點(diǎn)擊gf_runtime 500 49,時(shí),還能顯示出49個(gè)使用用戶(hù)的信息.gf_runtime bsy_zc hp1083 6/2 8:09
gf_runtime dbcsq hp1012 6/2 9:06
gf_runtime dblbj hp1011 6/2 8:01
gf_runtime dbllj hp1012 6/2 8:15
gf_runtime dblxh hp1010 6/2 11:06
gf_runtime dblxx hp1012 6/2 8:52
gf_runtime dbly hp2036 6/2 10:32
gf_runtime dbwjl hp1012 6/2 8:21
gf_runtime dbxj hp1011 6/2 8:30
gf_runtime dbyhx hp1012 6/2 8:50
gf_runtime dbzlh hp1012 6/2 10:02
就是用戶(hù)的使用信息.

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2009-06-03 09:19 |只看該作者

回復(fù) #1 古道西風(fēng) 的帖子

沒(méi)明白

論壇徽章:
27
處女座
日期:2016-04-18 14:00:4515-16賽季CBA聯(lián)賽之福建
日期:2023-03-31 15:54:2315-16賽季CBA聯(lián)賽之深圳
日期:2020-06-02 10:10:5015-16賽季CBA聯(lián)賽之廣夏
日期:2019-07-23 16:59:452016科比退役紀(jì)念章
日期:2019-06-26 16:59:1315-16賽季CBA聯(lián)賽之天津
日期:2019-05-28 14:25:1915-16賽季CBA聯(lián)賽之青島
日期:2019-05-16 10:14:082016科比退役紀(jì)念章
日期:2019-01-11 14:44:062016科比退役紀(jì)念章
日期:2018-07-18 16:17:4015-16賽季CBA聯(lián)賽之上海
日期:2017-08-22 18:18:5515-16賽季CBA聯(lián)賽之江蘇
日期:2017-08-04 17:00:4715-16賽季CBA聯(lián)賽之佛山
日期:2017-02-20 18:21:13
3 [報(bào)告]
發(fā)表于 2009-06-03 11:06 |只看該作者
參照CSV格式文件

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2009-06-04 08:40 |只看該作者
把第一列稱(chēng)為模塊名如gf_runtime 、gf_iesx_seis3dv ,我想用hashmap進(jìn)行存儲(chǔ),map的key是第一列的值,比如是gf_runtime 、gf_iesx_seis3dv 、gf_data_manager等等, 值是List,用來(lái)存儲(chǔ)gf_runtime 、gf_iesx_seis3dv 、gf_data_manager等的用戶(hù)信息比如

gf_runtime dbcsq hp1012 6/2 9:06
gf_runtime dblbj hp1011 6/2 8:01
gf_runtime dbllj hp1012 6/2 8:15
gf_runtime dblxh hp1010 6/2 11:06
gf_runtime dblxx hp1012 6/2 8:52
gf_runtime dbly hp2036 6/2 10:32
gf_runtime dbwjl hp1012 6/2 8:21
gf_runtime dbxj hp1011 6/2 8:30
gf_runtime dbyhx hp1012 6/2 8:50
gf_runtime dbzlh hp1012 6/2 10:02
gf_runtime gf43user sjkgeoframe 6/2 8:18
gf_runtime glr_zg hp1014 6/2 8:42
gf_runtime hmmyg hp1017 6/1 8:44
gf_runtime hmrrj hp1078 6/2 8:42
gf_runtime hmsjl hp2044 6/2 8:10
gf_runtime hmsx hp1078 6/2 8:47
gf_runtime hmtmy hp1078 5/22 14:53
gf_runtime jch_zc hp1083 6/2 10:50
gf_runtime lbj_zg hp2045 5/31 15:19
gf_runtime lg_zg hp1010 6/2 9:38
gf_runtime lsx_zc hp1083 6/2 9:36
gf_runtime lxy_zg hp1077 6/2 7:57
我怎么才能用個(gè)循環(huán)把不同模塊的用戶(hù)信息存儲(chǔ)在List,并放入map!!!!

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2009-06-04 12:40 |只看該作者

  1. import java.io.BufferedReader;
  2. import java.io.FileReader;
  3. import java.util.HashMap;
  4. import java.util.Map;
  5. import java.util.Vector;

  6. /*
  7. * To change this template, choose Tools | Templates
  8. * and open the template in the editor.
  9. */

  10. /**
  11. *
  12. * @author sbyuser
  13. */
  14. public class readDataFile {
  15.     class  recs {
  16.         private int n1;
  17.         private int n2;
  18.         private Vector<strs> v;

  19.         public recs()
  20.         {
  21.             v = new Vector<strs>();
  22.         }

  23.         /**
  24.          * @return the n1
  25.          */
  26.         public int getN1() {
  27.             return n1;
  28.         }

  29.         /**
  30.          * @param n1 the n1 to set
  31.          */
  32.         public void setN1(int n1) {
  33.             this.n1 = n1;
  34.         }

  35.         /**
  36.          * @return the n2
  37.          */
  38.         public int getN2() {
  39.             return n2;
  40.         }

  41.         /**
  42.          * @param n2 the n2 to set
  43.          */
  44.         public void setN2(int n2) {
  45.             this.n2 = n2;
  46.         }

  47.         /**
  48.          * @return the v
  49.          */
  50.         public Vector<strs> getV() {
  51.             return v;
  52.         }

  53.         /**
  54.          * @param v the v to set
  55.          */
  56.         public void setV(Vector<strs> v) {
  57.             this.v = v;
  58.         }
  59.     }

  60.     class  strs {
  61.         private String s1;
  62.         private String s2;
  63.         private String s3;
  64.         private String s4;

  65.         /**
  66.          * @return the s1
  67.          */
  68.         public String getS1() {
  69.             return s1;
  70.         }

  71.         /**
  72.          * @param s1 the s1 to set
  73.          */
  74.         public void setS1(String s1) {
  75.             this.s1 = s1;
  76.         }

  77.         /**
  78.          * @return the s2
  79.          */
  80.         public String getS2() {
  81.             return s2;
  82.         }

  83.         /**
  84.          * @param s2 the s2 to set
  85.          */
  86.         public void setS2(String s2) {
  87.             this.s2 = s2;
  88.         }

  89.         /**
  90.          * @return the s3
  91.          */
  92.         public String getS3() {
  93.             return s3;
  94.         }

  95.         /**
  96.          * @param s3 the s3 to set
  97.          */
  98.         public void setS3(String s3) {
  99.             this.s3 = s3;
  100.         }

  101.         /**
  102.          * @return the s4
  103.          */
  104.         public String getS4() {
  105.             return s4;
  106.         }

  107.         /**
  108.          * @param s4 the s4 to set
  109.          */
  110.         public void setS4(String s4) {
  111.             this.s4 = s4;
  112.         }
  113.     }

  114.     public void showData()
  115.     {
  116.         for(Map.Entry<String, recs> e : m1.entrySet())  {
  117.             System.out.println(e.getKey() + "\t" + e.getValue().getN1() + "\t" + e.getValue().getN2());
  118.             for(strs v : e.getValue().getV()) {
  119.                 System.out.println("\t\t" + v.getS1() + "\t" + v.getS2() + "\t" + v.getS3() + "\t" + v.getS4());
  120.             }
  121.         }
  122.     }

  123.     private HashMap<String, recs> m1;

  124.     public readDataFile()
  125.     {
  126.         try {
  127.             // TODO code application logic here
  128.             m1 = new HashMap<String, recs>();

  129.             BufferedReader br = new BufferedReader(new FileReader("d:/hostuser.txt"));
  130.             while(br.ready())   {
  131.                 String lineStr = br.readLine();
  132.                 String[] tokens = lineStr.split("\\s");
  133.                 if(tokens.length == 3)  {
  134.                     if(m1.containsKey(tokens[0]))   {
  135.                         System.out.println("重復(fù)的鍵值");
  136.                     }
  137.                     else   {
  138.                         recs rec = new recs();
  139.                         rec.setN1(Integer.parseInt(tokens[1]));
  140.                         rec.setN2(Integer.parseInt(tokens[2]));
  141.                         m1.put(tokens[0], rec);
  142.                     }
  143.                 }
  144.                 else    {
  145.                     if(!m1.containsKey(tokens[0]))   {
  146.                         System.out.println("沒(méi)找到鍵值 :" + tokens[0]);
  147.                     }
  148.                     else   {
  149.                         recs recs = m1.get(tokens[0]);
  150.                         strs str = new strs();
  151.                         str.setS1(tokens[1]);
  152.                         str.setS2(tokens[2]);
  153.                         str.setS3(tokens[3]);
  154.                         str.setS4(tokens[4]);
  155.                         recs.v.add(str);
  156.                         m1.remove(tokens[0]);
  157.                         m1.put(tokens[0], recs);
  158.                     }
  159.                 }
  160.             }
  161.         } catch (Exception ex) {

  162.         }
  163.     }
  164.     /**
  165.      * @param args the command line arguments
  166.      */
  167.     public static void main(String[] args) {
  168.         new readDataFile().showData();
  169.     }

  170. }
復(fù)制代碼

大概是這個(gè)意思吧
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專(zhuān)區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP