Write a method called longestName that accepts a Scanner for the console and an integer n as parameters and prompts for n names, then prints the longest name (the name that contains the most characters) in the format shown below, which might result from a call of longestName(console, 4):
name #1? Royname #2? DANEname #3? sTeFaNiEname #4? MarianaStefanie's name is longest
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.