Java tutorial
//package com.java2s; public class Main { static double y, x, rem; static int cont, i, loopstart, daydist; public static int calcyseal(int bthyear) { int abs = (Math.abs(1965 - bthyear)); y = abs / 4.00; y = y - Math.floor(y); if (y > 0) { cont = calcyseal(bthyear + 1); return (cont + 1); } else return (1); } }