I have two set of arraylist, respectively storing the ground coordinate and wall coordinate. My car can move on the ground coordinate only.

The coordinate in the ground and the wall is randomly generated and is in double type.

I get the starting coordinate and destination coordinate and I need to move the car from the starting point to the destination... and at this time, shortest path is not necessary. I have researched that i could use the a* search algorithm or bfs algorithm but it seems too complex to me... could anyone suggest me easier method to get the path?

i also have difficult to figure out how to find the adjacent coordinate of my starting point? is there any advice? as i think i couldn't just simply check like (x+1, y), (x, y+1)....etc if (x,y) is my starting point.