how to get the distance between two points
In J2me, only use +,-,*,/, how to get the distance of 2 points(x1,y1) and (x2,y2)?
You need to use Pythagoras to do this, for which you'll need to perform a square-root. You'll need to write your own square-root method; do a search for "Newton-Raphson method".
If you don't need to know the actual distance, but just, say, which of two distances is smaller, then you can skip the square-root step and just compare the sum of the squares.
IF you need to use alot more floating point math than just the sqrt, then try using a library like mathfp.