Java Program to Check Whether a Number is Even or Odd [if-else & ternary] | Vultr Docs