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.This is my code but is not right and the only compilation errors I am getting is "The system has detected compilation errors." So it is not helping me much. Am i on the right path?\[code\]public static String listCountriesOfOrigin (Bowl[] bowls) { for(int i = 0; i < Bowl.length; i++) { String origin = bowls.getOrigin(); return origin; }}\[/code\](.getOrigin) is already a declared method that returns the origins of the objects from the array.