编辑代码

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
        //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
        Scanner sc = new  Scanner(System.in);
		System.out.println("input monye");
        double my1 = sc.nextDouble();
        //System.out.println("is :" + my1);
        System.out.println("input month ");
        int m = sc.nextInt();
        System.out.println("pl Style ");
        String st = sc.next();
         System.out.println(" new money is " + scr(my,mn,st));
	}
    public static double scr (double my,int mn,String st){
        if (mn <= 5 && mn <= 10){
            // wang
            swtich (st) {
                case "one1" :
                my *= 0.9;
                break;
                case "tow":
                my *= 0.85;
                break;
                default:
                 System.out.println("st  roung");
                 my = -1;
            }

        }else if(mn == 11 || mn == 12 || mn >= 1 && mn <= 4){
          // dan 
          swtich (st) {
                case "one":
                my *= 0.7;
                break;
                case "tow":
                my *= 0.65;
                break;
                default:
                 System.out.println("st roung ");
                 my = -1;
            } 
        } else{
         // err
         System.out.println("mt erro roung ");
         my = -1;
        }
         

  
    }

}