Java tutorial
import java.util.Arrays; public class Main { public static void main(String[] argv) throws Exception { boolean b = Arrays.equals(new String[] { "a" }, new String[] { "a" }); b = Arrays.equals(new String[] { null }, new String[] { null }); b = Arrays.equals(new String[] { "a" }, new String[] { null }); } }