To get all that code working, you'll have to fix a few things.
1. Fix all the missing semicolons. In the end of your code they seem to be missing every second line or something.
2. You will get NullpointerException's if you don't initialize your variables. Fix this!
Tip:
Code:
private Random rand = new Random(10);
You will also need to initialize your coordinates:
Code:
private int[] xPoints = new int[3];
3. As far as I know, you
can't do this:
Code:
xPoints = {10+x, 10+x, 15+x}
yPoints = {10+y, 20+y, 15+y}
It will give you some errors about how to use constants in the initializer.
You can always set them later:
That should get you heading in a better direction I believe!