Hi people,

I'm almost completely new to this object orientated lark, the closest I got was probably Amos on the Amiga, and I wasn't too good at that either.

Anyway, I enrolled on a Foundation Degree in Computer Enterprise in September. It's not so much the logic that I'm struggling with on the course, it's more the pace of study and this Java business. Anyways, I have my first big programming assignment, and, if you excuse me for going back in time by about 20 years, I'll explain what I'm trying to in an olde version of BASIC, as follows:

1 REM LETS SET UP SOME GLOBAL VARIABLES FOR X AND Y CO-ORDANATES
2 LET EX=0: LET WHY=0
3 REM AND NOW I WANT TO CHANGE THE VARIABLES IN A LOOP
4 FOR EYE=0 TO 19: READ EX: READ WHY
5 PLOT EX,WHY: NEXT EYE
999 REM AND HERE IS THE DATA TABLE
1000 DATA 1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10

This will obviously draw a diagonal line on a machine such as a Sinclair, more or less. Though I can't remember if the integer names had to be single characters or not, but you should get what it does or should do at any rate.

I'm not too worried about how to draw to a window in Java, what I need is the equivalent to the READ/DATA statements if anyone has an example. I'm also familair with how to implement the FOR command in Java.

Any tips would be greatly appreciated.

Cheers,

Shaun.