Question: create 3 parallel arrays for -countries: China, Egypt, Kenya, and India -capitals: Beijing, Cairo, Nairobi, and New Delhi -languages: Mandarin, Arabic, Swahili, and Hindi

create 3 parallel arrays for -countries: China, Egypt, Kenya, and India -capitals: Beijing, Cairo, Nairobi, and New Delhi -languages: Mandarin, Arabic, Swahili, and Hindi Use the three arrays to print this: People in Beijing, China speak Chinese People in Cairo, Egypt speak Arabic People in Nairobi, Kenya speak Swahili People in New Delhi, India speak Hindi create a static method sumArray that returns the sum of the items in an int array For Example: int[] goals = {1, 2, 3, 4, 5, 6}; System.out.println("The sum of all the goals is //outputs The sum of all the goals is 21 + sumArray (goals));
Step by Step Solution
There are 3 Steps involved in it
Answer Sure heres a Java program that fulfills your requirements public class Main Arrays stati... View full answer
Get step-by-step solutions from verified subject matter experts
