Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static void checkDatasExist(Object[] datas) { if (datas == null || datas.length == 0) throw new RuntimeException("datas can't be empty"); } }