OK, first "Don't Panic!" That's the best advice ever to come out of
The Hitchhiker's Guide to the Galaxy. Everyone has to begin somewhere. Relax and don't worry so much about seeming a "fool".
Now with that said, yes, this is a horrible attempt. You have aps, which is clearly a one-dimensional array (notice the single set of brackets in
String []), but you're trying to apply multiple indices to it: aps[i][0]. Also, i is a static variable set outside the method, which, as you will find as you gain familiarity with programming, is something you really don't want to do.
Let's just take your first goal: given the name of an airport you want to return the flights for that airport. Will there be more than one flight per airport? Probably. Will there be the same number of flights per airport? Probably not. What I'm getting at is that I don't think you want to use a multi-dimensional array at all. How about arrays stored in a hash table? Is that beyond the scope of this assignment?
Try this:
Of course, that's just off the top of my head, and I haven't even compiled it, but it should work more or less.
A couple final closing points about multi-dimensional arrays (for anyone left reading):
1. Multi-dimensional arrays are usually only theoretically useful. In real life, arrays or other collections of objects are more common.
2.
You should make sure you understand one-dimensional arrays, before trying to wrap your mind around 2D, 3D, and nD.