Put the data in an array and use a loop to go through the contents of the array.
Type: Posts; User: Norm
Put the data in an array and use a loop to go through the contents of the array.
Put the tickets.dat file in the same folder with the TotalTicketSales.class file.
When you execute the java command in that folder, the program should find the .dat file.
If you are using an IDE,...
Does the code compile without any errors? It shouldn't execute if there are compiler errors.