I have ArrayList and i want to get him some specific object values and insert them to another ArrayList, but I can't get the specific values
val listA = ArrayList<User>()
this list contains some users with their id,name, and email so i need to get all user's whose names are john and id,email will be any value
listA.filter { it.name == "john" }