Programming cannot be done by guessing, which is what you have been doing so far. Frankly, they have been wild guesses and way off the mark.
Programming is like speaking in another language. Like if I wanted to say "The second person" in my native dialect, I would say "Ang ika-duha nga tawo." If I wanted to say "The third person," I would say "Ang ika-tulo nga tawo." The variations would just follow from the fact that we count 2, 3, 4, 5, 6, 7 as "duha, tulo, upat, lima, unom, pito." Given that, can you tell me how we would say "The sixth person" in my dialect?
Similarly, the program you
wrote were given is trying to teach you how to say "The Nth whatever" in
Java. You are asked to fill in the missing parts by deducing how to say a simple phrase in Java, based on some previous examples, just as I tried to give you some examples of how to say something in my dialect and then asked you to deduce how to say similar phrases.
Read through the program again and see which parts of it represent the idea of "The Nth whatever" and use those as examples.
You should then be able to figure out how to say "The I-th Person's name" and other simple phrases, in Java.
Good luck.