static void checkArgument ( boolean check , String msg , Object ... args ) { if ( ! check ) { throw new IllegalArgumentException ( String . format ( msg , args ) ) ; } }
Throws IllegalArgumentException with the given message if the check is false .