/* Please Parentheses Excuse Exponents My Multiplication Dear Division Aunt Addition Sally Subtraction Java's version of this: Please Parentheses My Dear Maniacal Multiplication Division Modulus Aunt Sally Addition Subtraction */ public class PrintExpression { public static void main(String[] args) { System.out.println(11.5 % 3.0); System.out.println(1 * 2 + 3 * 5 / 4); System.out.println((35.0 + 22.4 + 11.9) / 3.0); System.out.println(2.5 / 2.0); System.out.println(14 / 4); System.out.println(14.0 / 4.0); System.out.println(1 + 2 / 3 * 5 - 4); System.out.println((1 + 2) * 3); System.out.println(1 * 2 + 3 * 5 / 4 + 1000); /* System.out.println(7342 % 100 / 10); System.out.println(7342 / 10 % 10); System.out.println(7342 % 2); System.out.println(7345 % 2); // System.out.println(7342 % 10); */ } }