Ok. So, I'm filling the array with flight objects? How should I do that in the for loop?
Type: Posts; User: anna_93
Ok. So, I'm filling the array with flight objects? How should I do that in the for loop?
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?
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...
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?
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...
Yes please do that! I tried deleting the other one, but couldn't figure that out!
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...