A
Andy K
Would you please help ne. I am trying to read from an array but I keep
getting an error (Variable not defined. here is the piece of code please
help.
{StringTokenizer tokens;
tokens = new StringTokenizer(textLiner)
teamName = tokens.nextToken();
points = Integer.parsInt(tokens.nextToken());
premiership t[] = new Premiership[20];
int i;
for (i=0; i<t.length;i++);
{
t = new Premiership(teamname,points);
t.teamName = teamName;
t.points = points;
}
getting an error (Variable not defined. here is the piece of code please
help.
{StringTokenizer tokens;
tokens = new StringTokenizer(textLiner)
teamName = tokens.nextToken();
points = Integer.parsInt(tokens.nextToken());
premiership t[] = new Premiership[20];
int i;
for (i=0; i<t.length;i++);
{
t = new Premiership(teamname,points);
t.teamName = teamName;
t.points = points;
}