String id = "10000";
String str = null;
String[][] s = new String[][] {
{ "0", "tes1" }, { "01", "test2" }, { "02", "test3" },
{ "03", "test4" }};
for(int i=0;i<s.length; i++){
if(s[i][0].equals(id)){
str = s[i][1];
}
}
}
转载于:https://my.oschina.net/meSpace/blog/88787