Need Help in Java Leap Year Program

Hello Everyone,

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:

  1. command line
  2. Methods
  3. Ternary Operator
  4. 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.

1 Like

This isn’t a Software AG suite question, Pankaj.
As you say, there are tons of options available online and you can try out the various options and see what works best for you.

KM

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.