我有我填写如下cordinates x和y数组包含列表
List<Float[]> list = new ArrayList<>();
list.add(new Float[]{x,y});
我想要做一个测试在这个列表中包含x和y需要有一个准确的数字只是一个列表这样
private boolean containlist(float x, float y) {
return (x <730 && x > 710 && y <1114 && y >140);
}
可能的复制[什么是过滤Java集合的最好方法是什么? (http://stackoverflow.com/questions/122105/what-is-the-best-way-to-filter-a-java-collection) – gus27