Thanks for answering.
The point with my homework is that the teacher has never told us anything about these methods, or gave us an example, so i don't know how to do it.
Anyway,i'm not asking you to do it for but help me with it.
I'll try to open the txt file and read from it,but i don't know how to use the nextInt() method, or draw the points.
Can you give some skills so i can try doing it?