We use operators to implement math and logic in our code. Take a look at this example:
System.out.println(12 + 6);
// we use the + operator to add
System.out.println(12 - 6);
// we use the - operator to subtract
System.out.println(12 * 6);
// we use the * operator to multiply
System.out.println(12 / 6);
// we use the / operator to divide
System.out.println(12 % 6);
// we use the % operator, called the modulus operator, to get the remainder if we were to divide the two numbersOutput
18 6 72 2 0