How can I remove specific object from ArrayList? Suppose I have a class as below:
import java.util.ArrayList; public class ArrayTest { int i; pu
use this code
test.remove(test.indexOf(obj)); test is your ArrayList and obj is the Object, first you find the index of obj in ArrayList and then you remove it from the ArrayList.