Hallo everybody! ;D

Newbie here ;D

I have an exercise from my University and i don't know how to do it.

Here it is...

I want my applet to read from the file coord_data_file.txt an Integer for example N=5 (the number of points) and the five points,for example
16384 19200
16384 18666
16384 32000
16384 21761
10000 10000

The points must be between 0 and 32768
To read the points we must use the nextInt() method of java.util.Scanner

And what the program should do is the following...

We must draw the points calling the PointPlotter.java(i will give you a .zip with all the files included)
After that we choose a point (we name it p).We compare the angle that it makes with each one of the other points (we name it q) with the compareTo method.
Then,we sort the points according to the angle that they make with the p.
We check if 3 or more of the sorted points have the same angle to p.If we find them then all these points belog to the same straight line.

So,please,can anyone help me ??? ???