请问怎么把参数key和temp保存到rowData中去?紧急啊!!!
Object[][] rowData =null;
Enumeration en = prop.propertyNames();
while(en.hasMoreElements()) {
String key = (String) en.nextElement();
String temp = prop.getProperty (key);
}
Object[][] rowData =null;
Enumeration en = prop.propertyNames();
while(en.hasMoreElements()) {
String key = (String) en.nextElement();
String temp = prop.getProperty (key);
}
Object[][] rowData = new Object[prop.size()][2];
Enumeration en = prop.propertyNames();
int i = 0;
while(en.hasMoreElements())
{
String key = (String) en.nextElement();
String temp = prop.getProperty(key);
rowData[i][0] = key;
rowData[i][1] = temp;
i++;
}