This project is to users at most can save 20 country names and country codes. I want to know what are the following steps to use arrays to save the country names and country codes?
public static void storeCountry code() {
for(int i=0; i<=19; i++) {
System.out.println("Add country name:");
Scanner input = new Scanner (System.in);
String countryName = input.nextLine();
}
Aucun commentaire:
Enregistrer un commentaire