Sajmon

maybeworking

Mar 18th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. private void searchN(GeoPoint p, Node current) {
  2.         if (current == null) {
  3.             // return null
  4.         }
  5.         else if (current.getGeoPoint().compareTo(p) == 0) {
  6.             System.out.println("equal");
  7.             founded = true;
  8.             nodes.add(current);
  9.         }
  10.         else {
  11.             checkRange(p, current);
  12.             searchN(p, current.left);
  13.             if (!founded) {
  14.                 searchN(p, current.right);
  15.             }
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment