jjzjj

leftFlowInnerHole

全部标签

Java ArrayList Contain 总是返回 false,尽管它包含相同的值

这是我的洞课classHole{publicinta;publicintb;Hole(inta,intb){this.a=a;this.b=b;}所以我添加了一个包含几个洞的ArrayListpublicvoidcheckPathLoop(intx,inty){//roughcodeArrayListleftFlowInnerHole=newArrayList();//leftholesrulesleftFlowInnerHole.add(newHole(0,1));leftFlowInnerHole.add(newHole(1,5));leftFlowInnerHole.add(ne