求助!
这个程序哪里出错了?import javax.swing.*;
public class bonus1
{
public static void main (String args[])
{
double pay;
int mouth;
pay=(double)System.in.read();
mouth=(int)(pay)/100000;
double i1=(100000*0.1);
double i2=(100000*0.075+i1);
double i4=(200000*0.05+i2);
double i6=(200000*0.03+i4);
double i10=(400000*0.015+i6);
switch(mouth)
{
case 0:i=i1; break;
case 1:i=i1+(pay-i1)*0.075; break;
case 2:case 3:i=i2+(pay-i2)*0.05; break;
case 4:case 5:i=i4+(pay-i4)*0.03; break;
case 6:case 7:case 8:case 9:i=i6+(pay-i6)*0.015; break;
case 10:i=i10+(pay-i10)*0.01;
}
System.out.print(i);
}
}