Java tutorial
//package com.java2s; public class Main { public static void requireSameArrayLength(Object[] objects, Object[] objects_) { if (objects.length != objects_.length) throw new IllegalArgumentException("Length of two arrays are not matched"); } }