import javax.microedition.midlet.*; import javax.microedition.io.Connector; import javax.microedition.io.file.*; import java.io.*; import javax.microedition.lcdui.*; import java.lang.String; public class Main extends MIDlet { private FileConnection fc; private Display display; /* private Form form; */ private List mylist; public Main() { display=Display.getDisplay(this); /* form = new Form("Список файлов в директории"); */ } public void startApp() { try { fc =(FileConnection)Connector.open("file:///E:/folder/"); java.lang.String[] files = fc.list(); mylist = new List("писка филов",Choice.IMPLICIT,files,null); fc.close(); } catch(IOException ioe) { } display.setCurrent(mylist); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } }