Write a static method named listcountriesoforigin, to be added to the bowl class, which is passed an array of bowl objects, and prints to the console in a column the country of origin of each of bowl objects in the array.

Respuesta :

I guess, this is java. Try that code:
public static String listCountriesOfOrigin (Bowl[] bowls) {
for(int i = 0; i < bowls.length; i++) { String origin = bowls[i].getOrigin();
System.out.println(origin); }
}