LeapYear メソッドが LeapYear であるかどうかを返すようにしようとしています (実際の if ステートメントを返します)。基本的に、私はコーディングが初めてで、int や double ではなく文字列値を返す方法がわかりません。誰でもこれで私を助けることができますか?
public static int LeapYear(int y) {
    int theYear;
    theYear = y;
    if (theYear < 100) {
        if (theYear > 40) {
            theYear = theYear + 1900;
        } else {
            theYear = theYear + 2000;
        }
    }
    if (theYear % 4 == 0) {
        if (theYear % 100 != 0) {
            System.out.println("IT IS A LEAP YEAR");
        } else if (theYear % 400 == 0) {
            System.out.println("IT IS A LEAP YEAR");
        } else {
            System.out.println("IT IS NOT A LEAP YEAR");
        }
    } else {
        System.out.println("IT IS NOT A LEAP YEAR");
    }
}