Write a Java program to implement the following 2D array named friends. Read the following instructions carefully and write the code. The above array shows the friend list of five persons Alice, Bob,...


Write a Java program to implement the following 2D array named friends. Read the following
instructions carefully and write the code.



The above array shows the friend list of five persons Alice, Bob, Chuck, David and Eve. They are
represented by index numbers 0, 1, 2, 3, and 4 respectively. You have to print
i) List of friends of Alice, Bob, Chuck, David and Eve.
ii) List of mutual friends of Alice & Bob, and Chuck & Eve.
(DO NOT print the friends’ names and mutual friends’ names simply by println() method.
You have to find the names programmatically.)




Alice<br>Bob<br>Chuck<br>David<br>Eve<br>3<br>Alice<br>0.<br>F<br>F<br>Bob<br>F<br>F<br>F<br>Chuck<br>2.<br>David<br>Eve<br>4.<br>F<br>

Extracted text: Alice Bob Chuck David Eve 3 Alice 0. F F Bob F F F Chuck 2. David Eve 4. F

Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here