Java Month checkMonth(int month)

Here you can find the source of checkMonth(int month)

Description

Prueft, ob sich der Monat innerhalb des erlaubten Bereichs befindet.

License

Open Source License

Parameter

Parameter Description
month der Monat.

Exception

Parameter Description
NumberFormatException an exception

Declaration

private static void checkMonth(int month) throws NumberFormatException 

Method Source Code

//package com.java2s;

public class Main {
    /**/*  ww w  .  j  a va2s . c  om*/
     * Prueft, ob sich der Monat innerhalb des erlaubten Bereichs befindet.
     * @param month der Monat.
     * @throws NumberFormatException
     */
    private static void checkMonth(int month) throws NumberFormatException {
        if (month < 1 || month > 12) {
            throw new NumberFormatException();
        }
    }
}

Related

  1. addMonthMark(int month, int add)
  2. addMonthString(String yyyymm)
  3. adjustWeekOfMonth(int eventWeekOfMonth, int eventRealWeekOfMonth)
  4. calculateMonthlyNominalInterestRate(final double effectiveInterestRate)
  5. createDateMonth(String dateYear)
  6. createTestCCMonth()
  7. daemonThread(Runnable runnable)
  8. displayMonthlyPeriod(String week)