executing the program.

I created 3 classes + one main class. (sorry again, it's all in french !! French java class) I have a class named Journee (Day), another one named Billet (ticket) and another on called Facture(billing) and the main class is called Safari.

I believe that my Journee and Billet class are ok and even thought I'm able to compile the Facture class, I guess there is something missing.

The main class Safari should be able to get the info from Facture,

When I execute the program I'm able to write down the day and how many tickets but after entering the tickets it should be able to make the calculation but it's not the case.

I gave it a shot, and took a look at the Main class to figure out what was happening - but without success.

As I understand it, your problem is that you can't calculate something (the total cost of the tickets?), and you wish to store this amount - correct?

A few pointers:

1. dont copy/past so much code - it's very hard to read. And when you insert code, then use the [ code ] ... [/ code] tags, e.g.:

2. rename your method ect. to english - it makes it alot easier for read (for us, that is)

3. please explain what your program does.. and if you think the other classes are ok, then simply explain the "public interface" of those classes for example:

Class Ticket + constructor: Ticket(int amount) // creates x tickets + setChildTicket() // this will set the tickets as children tickets, which costs 10 $ a piece + makeAdultTicket() // this will set the tickets as adult tickets, which costs 20 $ a piece + getTickets() //retuns the number of tickets

and then simply show the static void main(...) method

edit: 4. you could also insert what you'd get as output when you run the program, then it's abit easier to deduct the flow..