UNB/ CS/ David Bremner/ teaching/ java/ Leap.java
class Leap{

  static final long YEARS=1000;

  public static void main(String[] args){

    BigCalculator calc=new BigCalculator();

    long div4years=(YEARS/4);

    long div100years=(YEARS/100);

    long div400years=(YEARS/400);

    String expression="("+div4years+"-"+div100years+"+"+div400years+")";

    long leapYears=calc.evalString(expression);

    long nonLeapYears=YEARS-leapYears;

    System.out.println("leap years="+leapYears);

  }

}