Assume that you are using a List in a MIDlet and want to take actions on list item selection, then following example code can be used to call the required functions.
Java Code:
public void commandAction(Command c, Displayable d) {
String label = c.getLabel();
if (label.equals("Exit")) {
         destroyApp(true);
} else {
         List down = (List)display.getCurrent();
         switch(down.getSelectedIndex()) {
           case 0: callFunction1();break;
           case 1: callFunction2 ();break;
           case 2: callFunction3 ();break;
           case 3: callFunction4 ();break;
           case 4: callFunction5 ();break;
         }
}