public static void checkPositive(int number, String message, Object... args) {
    if (number < 0) {
      throw new IllegalArgumentException(String.format(message, args));
    }
  }
public static void checkPositive ( int number , String message , Object ... args ) { if ( number < 0 ) { throw new IllegalArgumentException ( String . format ( message , args ) ) ; } }
Validates that an argument is positive.

@param value The value to check.
@param message An exception message.
@param args Exception message arguments.