Good day to all. Faced a JAVA task and I can’t figure it out. There is such an array:
String[][] arr = { {"Kenya", "Nairobi"}, {"Rwanda", "Kigali"}, {"Gambia", "Banjul"}, {"Ghana", "Accra"}, {"Niger", "Niamey"}, {"Zambia", "Lusaka"} }; It is necessary that the program would request the name of the country and display its capital. If this country does not exist, then display the appropriate message.