thanks... ok imported ArrayList but that wasn't the problem.
code/
class Advance extends Ticket
{
int TotaladvPrice = 0;
int advPrice = 0;
int Days = 11;
ArrayList AdvanceTickets = new ArrayList();
(1)for (int i = 0; i < AdvanceTickets.size(); i++)
{
if (Days > 10)
{
advPrice(30);
}
if (Days < 10 && Days > 0)
{
advPrice = 40;
}
}
}(2)
/code
i have tried every that i can think of about for loops and i still get the error "illegal start of type"(1) and "<identifier> expected" (2) for the last curly brace i haven't really tried to fix that one yet though