VOOZH about

URL: https://www.geeksforgeeks.org/java/copyonwritearraylist-equals-method-in-java-with-examples/

⇱ CopyOnWriteArrayList equals() method in Java with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CopyOnWriteArrayList equals() method in Java with Examples

Last Updated : 4 Jan, 2019
CopyOnWriteArrayList equals() method is used to compare two lists. It compares the lists as, both lists should have the same size, and all corresponding pairs of elements in the two lists are equal. Syntax:
boolean equals(Object o)
Parameters: This function has a single parameter which is object to be compared for equality. Returns: This method returns True if lists are equal. Below programs show the implementation of this method. Program 1: Program 2:
Comment