亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標題:
求助!得到的下面的字符串如何存儲調(diào)用!!!
[打印本頁]
作者:
古道西風
時間:
2009-06-02 17:21
標題:
求助!得到的下面的字符串如何存儲調(diào)用!!!
通過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
我要如何存儲才能實現(xiàn)表格顯示,當點擊gf_runtime 500 49,時,還能顯示出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
就是用戶的使用信息.
作者:
hsqsoft
時間:
2009-06-03 09:19
標題:
回復 #1 古道西風 的帖子
沒明白
作者:
evaspring
時間:
2009-06-03 11:06
參照CSV格式文件
作者:
古道西風
時間:
2009-06-04 08:40
把第一列稱為模塊名如gf_runtime 、gf_iesx_seis3dv ,我想用hashmap進行存儲,map的key是第一列的值,比如是gf_runtime 、gf_iesx_seis3dv 、gf_data_manager等等, 值是List,用來存儲gf_runtime 、gf_iesx_seis3dv 、gf_data_manager等的用戶信息比如
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
我怎么才能用個循環(huán)把不同模塊的用戶信息存儲在List,并放入map!!!!
作者:
caojiqun
時間:
2009-06-04 12:40
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.HashMap;
import java.util.Map;
import java.util.Vector;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author sbyuser
*/
public class readDataFile {
class recs {
private int n1;
private int n2;
private Vector<strs> v;
public recs()
{
v = new Vector<strs>();
}
/**
* @return the n1
*/
public int getN1() {
return n1;
}
/**
* @param n1 the n1 to set
*/
public void setN1(int n1) {
this.n1 = n1;
}
/**
* @return the n2
*/
public int getN2() {
return n2;
}
/**
* @param n2 the n2 to set
*/
public void setN2(int n2) {
this.n2 = n2;
}
/**
* @return the v
*/
public Vector<strs> getV() {
return v;
}
/**
* @param v the v to set
*/
public void setV(Vector<strs> v) {
this.v = v;
}
}
class strs {
private String s1;
private String s2;
private String s3;
private String s4;
/**
* @return the s1
*/
public String getS1() {
return s1;
}
/**
* @param s1 the s1 to set
*/
public void setS1(String s1) {
this.s1 = s1;
}
/**
* @return the s2
*/
public String getS2() {
return s2;
}
/**
* @param s2 the s2 to set
*/
public void setS2(String s2) {
this.s2 = s2;
}
/**
* @return the s3
*/
public String getS3() {
return s3;
}
/**
* @param s3 the s3 to set
*/
public void setS3(String s3) {
this.s3 = s3;
}
/**
* @return the s4
*/
public String getS4() {
return s4;
}
/**
* @param s4 the s4 to set
*/
public void setS4(String s4) {
this.s4 = s4;
}
}
public void showData()
{
for(Map.Entry<String, recs> e : m1.entrySet()) {
System.out.println(e.getKey() + "\t" + e.getValue().getN1() + "\t" + e.getValue().getN2());
for(strs v : e.getValue().getV()) {
System.out.println("\t\t" + v.getS1() + "\t" + v.getS2() + "\t" + v.getS3() + "\t" + v.getS4());
}
}
}
private HashMap<String, recs> m1;
public readDataFile()
{
try {
// TODO code application logic here
m1 = new HashMap<String, recs>();
BufferedReader br = new BufferedReader(new FileReader("d:/hostuser.txt"));
while(br.ready()) {
String lineStr = br.readLine();
String[] tokens = lineStr.split("\\s");
if(tokens.length == 3) {
if(m1.containsKey(tokens[0])) {
System.out.println("重復的鍵值");
}
else {
recs rec = new recs();
rec.setN1(Integer.parseInt(tokens[1]));
rec.setN2(Integer.parseInt(tokens[2]));
m1.put(tokens[0], rec);
}
}
else {
if(!m1.containsKey(tokens[0])) {
System.out.println("沒找到鍵值 :" + tokens[0]);
}
else {
recs recs = m1.get(tokens[0]);
strs str = new strs();
str.setS1(tokens[1]);
str.setS2(tokens[2]);
str.setS3(tokens[3]);
str.setS4(tokens[4]);
recs.v.add(str);
m1.remove(tokens[0]);
m1.put(tokens[0], recs);
}
}
}
} catch (Exception ex) {
}
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
new readDataFile().showData();
}
}
復制代碼
大概是這個意思吧
歡迎光臨 Chinaunix (http://72891.cn/)
Powered by Discuz! X3.2