Ok, so the coordinates your teacher gives you looks like they will be ints. That is perfect.
To create a new Point object, something like this works:
public static void main(String[] args)
{...
Type: Posts; User: aussiemcgr
Ok, so the coordinates your teacher gives you looks like they will be ints. That is perfect.
To create a new Point object, something like this works:
public static void main(String[] args)
{...
Any restrictions to what you are aloud to do? Because a lot of this can be done really easily.
Check out the Point Class (Point (Java Platform SE 6)).
That can deal with storing your x's and...