Java tutorial
//package com.java2s; /** * Copyright (C) 2009-2013 Barchart, Inc. <http://www.barchart.com/> * * All rights reserved. Licensed under the OSI BSD License. * * http://www.opensource.org/licenses/bsd-license.php */ public class Main { public static final void checkArray(final byte[] array) { if (array == null) { throw new IllegalArgumentException("array == null"); } } }