I am looking for a way to remove duplicated values from a multidimensional array
Example
String[][] values = [["A","A"],["A","A"],["B","B"],["B","B"]]
String[][] dupsRemoved = ?
println dupsRemoved
DESIRED OUTPUT
[["A","A"],["B","B"]]
I am looking for a way to remove duplicated values from a multidimensional array
Example
String[][] values = [["A","A"],["A","A"],["B","B"],["B","B"]]
String[][] dupsRemoved = ?
println dupsRemoved
DESIRED OUTPUT
[["A","A"],["B","B"]]
Copyright © 2021 Jogjafile Inc.
You can use
Any reason you're using String arrays? Embrace the lists ;-)