im sure its just a simple error but i can't see it
where it is yellow i get '(' expected.. any help appreciated.
public class ProcessCurrency { static final int MINICOM = 500; [COLOR="Yellow"] public static void main string(String[] argv) {[/COLOR] double amtEx; double commission, cash; double totalAmt =0, totalSterling=0, totalCash=0, totalComm=0 int transaction = 0; UserInput.prompt("currency to convert from"); sterling currency =UserInput.readString(); UserInput.prompt("Rate of exchange to sterling pence"); double exRate = UserInput.readDouble(); UserInput.prompt("Amount to Exchange"); amtEx = UserInput.readDouble(); while (amtEx >0) { double penceAmt = (amtEx/exRate); int pAmt = (int) (penceAmt *100); double sterling = pAmt/100; System.out.println(amtEx + " " + currency + " is " + sterling/100 = "pence") if (sterling<=MINICOMM) { System.out.println("Ammount to small"); }//end if else { commission = (sterling * commRate/100); if(commission <MINICOMM) { commission = MINICOMM; } System,out.println("commission " + commission/100 + " GDP") cash = sterling - commission; System.out.println (" ; payout " = cash/100 + " GDP"); totalAmt = totalAmt + amtEx; totalSterling = totalSterling + sterling; totalCash = totalCash + cash; totalComm = totalcomm + commission; transaction++; }//end else System.out.println("\nAmount to exchange2"); amtEx = UserInput.readDouble(); }//end while System.out.println (" Transactions " + transaction ); System.out.println (" Total " + currency + " recieved " + totalAmt); System.out.println (" Total sterling value " + totalSterling / 100); System.out.println (" Total handouts " + totalCash/ 100); System.out.println (" Total commission " + totalComm / 100); System.out.println (" Average handout " + totalCash / 100 / transaction); System.out.println ( currency + " per pound " + totalAmt * 100 / totalCash ); }//end of main }// end of class // Put your local declarations here // Prompt and read // Compute and print } // end of main } // end class