2
我想列出记录存储区中的所有记录。我声明了一个清单:列出所有记录j2me
Private List tlist = new List("Select One", List.IMPLICIT);
也算进去的记录:
Form mainf;
Command exit = new Command("Exit", Command.EXIT, 0);
RecordEnumeration re = null;
int numrecords = 0;
try {
re = contactList.enumerateRecords(null, null, false);
numrecords = re.numRecords();
} catch (RecordStoreException rse) { numrecords = 0;}
现在我只需要知道如何列出一个列表中的所有记录。
你的意思是 '而(e.hasNextElement())'? –
哦,我已经改变了。谢谢史蒂夫。 :) – bharath