Ad

I translated it to java!

Code
Diff
  • class EvenOrOdd {
        public static String evenOrOdd(int input) {
            return input % 2 == 0 ? "Even" : "Odd";
        }
    }
    • even_or_odd = lambda n:'Odd' if n%2 else 'Even'
    • class EvenOrOdd {
    • public static String evenOrOdd(int input) {
    • return input % 2 == 0 ? "Even" : "Odd";
    • }
    • }