[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/windweb/JavaTutorial/master/src/F010_OrderOfOperations.java [Back]  [Original]

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

        int x = 10 + 3 * 2;
        System.out.println(x);

        int z = (10 + 3) * 2;
        System.out.println(z);
/*
        // Order of Operations is from left to right /    
        // () has the highest precedence / ()   
        * / has the next highest precedence / * /    
        // + - has the lowest precedence / + -   
*/
    }
}

Web Proxy Viewer  |  New URL  |  Original Page