Hi,
My task is to write a program that calculates and displays a position of a point inside a square. Position of a point in the plane is specified by its coordinates, two numbers: x and y, often written as a pair (x,y). The position of the point is repeatedly changed by the user who enters a direction for the point to move: up, down, left or right. Then one of the point's coordinates, x or y, will increase or decrease by one
unit. Initially the point lies at (0,0) which is the centre of a square whose sides are 8 units long. If the user enters 'l' (for left) or 'r' (for right) then the first coordinate, x, will decrement or increment, respectively. Similarly, the second coordinate, y, will increment or decrement if the user enters 'u' (for up) or 'd' (for down).
I am an external student and am using "Starting out with Java", trust me it is not my best subject.
I have done some more work and changed things around and now only have 8 errors but they are all on the same line!