The Java programming language supports various arithmetic operators for all floating-point and integer numbers. These operators are + (addition), - (subtraction ...
System.out.println("a + b = " + (a + b)); // 10 + 5 = 15 System.out.println("a - b = " + (a - b)); // 10 - 5 = 5 System.out.println("a * b = " + (a * b)); // 10 * 5 ...