OK, so I'm trying to get the job of this class:
< Code> public boolean hashunt point p) {for (int i = 0; i & lt; this.points.size (); i ++) {// is right here if (number [i] .equals (p)) {Back to true; } } return false; }
Although calling on 3 lines as an array, but it's actually an array list. What am I doing wrong?
To access the elements of an ArrayList, use:
Points near the public boolean (point p) {for (int i = 0; i & lt; this.points.size ()} i ++) {if (points.get (i) .equals (p)) {true true; } } return false; }
But if digit
is an ArrayList
, then you can use it for the same effect:
< Pre> points near public boolean (point p) {return point cuts (p); }
Comments
Post a Comment