Here you can find the source of equalLists(List a, List b)
public static boolean equalLists(List a, List b)
//package com.java2s; import java.util.List; public class Main { public static boolean equalLists(List a, List b) { return (a == null && b == null) || a.equals(b); }// ww w. j av a 2 s. c o m }