Search:

Type: Posts; User: anna_93

Search: Search took 0.17 seconds.

  1. Replies
    13
    Views
    1,570

    Re: Help with assignment?

    Ok. So, I'm filling the array with flight objects? How should I do that in the for loop?
  2. Replies
    13
    Views
    1,570

    Re: Help with assignment?

    Well, usually we use for method to fill the array right? Well, what is the type of the array we created as Flight[] flight (i.e String or Int)?
    So, should I be using for loop here?
  3. Replies
    13
    Views
    1,570

    Re: Help with assignment?

    Thanks so much! That clears it up.

    So what confuses me is implementing the methods. In the main, I have createFlights() and it should populate the array of flights. There are other bunch of other...
  4. Replies
    13
    Views
    1,570

    Re: Help with assignment?

    Ok so I think constructor parameters are there to assign a value to the variables, right? Or can a constructor do something more than that?
  5. Replies
    13
    Views
    1,570

    Re: Help with assignment?

    So in the main class there are quite a few methods, how would i populate an array of flights in the createFlights() method and the arguments in the rest of the methods; are they suppose to set the...
  6. Replies
    13
    Views
    1,570

    Re: Help with assignment?

    Yes please do that! I tried deleting the other one, but couldn't figure that out!
  7. Replies
    13
    Views
    1,570

    Help with assignment?

    Hey!

    So I'm a beginner at java and I'm working on this assignment and kinda need help.. I have tried attempting it and attached it here..

    I just kinda get stuck when it comes to passing values...
Results 1 to 7 of 7