I was reading a couple of blogs on Java Leap Year Program on Scaler, GFG, Programiz.
Here is doubt:
I wanted to know how many methods are there to check Java Leap year.
I understood 4 methods which are:
- command line
- Ternary Operator
- Using if-else Statements
these methods were mentioned on Scaler. Now the confusion is every blog mention some different methods and I am confused about which one is to use and how many methods are there.
Can someone lighten here, suggest to me what to do.