-4

I would like to know what does this return statement mean since I have never seen it:

    static int max(int a, int b) { 

         return (a > b)? a : b; 
    }

Thank you for your help!

1 Answers1

0

it's a ternary operator basicly if a > b then return a else b

Nemesis
  • 2,750
  • 2
  • 22
  • 20