Hi everyone... I am very stuck here trying to print from an Array. Can somebody help please?
Basically I have two different classes, one, which creates Tickets Objects. Each object is an array of 6.
The second Class, called ArrayTicket is an array of 30 Tickets. Is in this class, where I assign 6 number to each Ticket. My problems is:
I need to print the 30 Tickets(therefo re 6 * 30 numbers) from ArrayTicket Class.
Any idea, how can do it?
Basically I have two different classes, one, which creates Tickets Objects. Each object is an array of 6.
Code:
public class Ticket
{
int theticket[]; // token to be inserted on the array
Ticket(int a[])
{
theticket = new int[6];
}
}
I need to print the 30 Tickets(therefo re 6 * 30 numbers) from ArrayTicket Class.
Any idea, how can do it?
Comment