Thanks for for posting the syntax. I am posting my problem below step by step, please understand them and then if you know it post with a solution.
These are my choice buttons
Code:
Choice tc;
tc=new Choice();
tc.addItem("A ");
tc.addItem("B ");
tc.addItem("C ");
These are my array values
Code:
static final int[] fare = { 110, 200,100, 160,220,270,280,370,380 };
static final int[] fareo={110, 110,110, 160, 160, 220,220,220,220,};
static final int[] fares={160, 320,320, 400, 400, 400,400,400,400};
This is my listener
Code:
class ZoneListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
amount = Integer.parseInt(e.getActionCommand());
I am providing this information see if you can help me out through any solution. Thanks in advance.
Bookmarks