Can you help me with this program?  In Java! Define a two-dimensional array of names. For each row: • specify the name with the longest length • check for a name starting with "A" (save its index) Save the results in one-dimensional arrays (initialize all elements of the second result array with -1 initially). Display an array of names, the names with the longest length of each line, and the name starting with "A" from each line or a message that there is none.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 4MQ2
icon
Related questions
Question

Can you help me with this program? 

In Java!

Define a two-dimensional array of names.

For each row:

• specify the name with the longest length

• check for a name starting with "A" (save its index)

Save the results in one-dimensional arrays (initialize all elements of the second result array with -1 initially).

Display an array of names, the names with the longest length of each line, and the name starting with "A" from each line or a message that there is none.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning