Ok,now what is wrong with this code?

Why the compareTo is wrong?It returns 0 even for different angles.

Can you please help me?Today i have to submit it.
Can you fix me the problem?

The whole code is in tha attched file.