import io.rm.collections.RMCollection; public class Main { public static void main(String[] args) { RMCollection<Integer> collection = new RMCollection<>(); collection.add(1).add(2).add(3).add(4).add(5); RMCollection<Integer> filteredCollection = collection.filter(x -> x % 2 == 0); System.out.println("Filtered Collection: " + filteredCollection); } } <dependencies> <dependency> <groupId>io.rm.collections</groupId> <artifactId>rm-collections</artifactId> <version>1.0.0</version> </dependency> </dependencies>


上一篇:
下一篇:
切换中文