Well that method takes two arrays as parameters. So to use the glide method you should already have two arrays written. In Java you make the array by saying:
private int[] x-coords = new int[SIZE] // SIZE is how many elements will be in the array
private in[] y-coords = new int[SIZE] // They should be the same if you're using them as coordinates
then to USE the glide method you would say
glide(x-coords,y-coords);
Now as far as writing that method goes.... it's going to depend on alot of things and if you showed more of the code then that would help alot. In essence what you want to do is:
public void glide(int[] x, int[] y) {
// Standard loop to iterate through all the elements of the x array
for(int i=0; i<x.length; i++) {
// This moves the pointer
mouseMove(x[i],y[i]);
// This pauses
try {
Thread.sleep(1000);
} catch(InterruptedException e) {}
}
}
Now what this is all doing is moving the mouse (hopefully in small increments) every 1000 milliseconds. The way you're breaking up the coordinates isn't the most effecient way (why use arrays instead of using math in the code) but it will work that way. Just requires alot more math on your part instead of the computers. Basically you're wanting to glide from the coorderinates (x[0],y[0]) to (x[24],y[24]). So the starting point is going to be the first points in the arrays and the end point is the last points in the arrays. Then every number in between should move by however much it needs to move.
The way that was presented in How to move a mouse smoothly throughout the screen by using java? is going to be the most efficient way. All he did was let the computer do the math and instead of using arrays he just put in a starting point and an ending point. You should read over that and try to understand that code as well as possible.