Thursday, June 14, 2018

တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 19 (Scanner+do while+if, else if ၸႂ်ႉၵိုၵ်းၵၼ်)

တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 19 (Scanner+do while+if, else if ၸႂ်ႉၵိုၵ်းၵၼ်)


java code example

public class lesson11 {
    public static void main(String []args){

        Scanner sc = new Scanner(System.in);        String s = sc.next();
        switch (s) {

            case "*133#":
                do {

                    System.out.println("1. data pack");                    System.out.println("2. Facebook Pack");                    System.out.println("3. Other Pack");
                    s = sc.next();
                    if (s.equals("1")) {
                        System.out.println("1. 450 MB+ 700");                        System.out.println("2. 2.GB + 1500 ");                        System.out.println("3. 88");
                        s = sc.next();
                        if (s.equals("2")||s.equals("2")) {

                            System.out.println("Success");

                        }


                    }


                } while (s.equals("88"));                break;            default:

                System.out.println("Number Code Error");
        }
    }
}

No comments:

Post a Comment

လွၵ်းမိုဝ်း လႄႈ ၽွၼ်ႉ တႃႇၶွမ်း Windows (Keyboard and Fonts For Windows 7,8,10)

ၼင်ႇႁိုဝ်လႄႈ ပေႃးတေပဵၼ်တၢင်းၵမ်ႉထႅမ် တွၼ်ႈတႃႇၽူႈၸႂ်ႉတိုဝ်းၶွမ်းႁဝ်းၶဝ်ၼၼ်ႉ လူဝ်ႇမႃးမိူဝ်ႈလႂ်ၵေႃႈ ႁႂ်ႈပေႃးႁႃငၢႆႈ ၸၼ်ငၢႆႈ ယိူင်းဢၢၼ်း...