<prompt> Ngola tšebetso ea Java e nkang lethathamo le khoele ebe o khutlisa nete haeba khoele e le lethathamong, ho seng joalo ke leshano.lenane: apole, banana, pere, khoele: pere  <response>: Instruction in English: Write a Java function which takes in a list and a string and returns true if the string is contained in the list, otherwise false. . Response in English: public static boolean containsStringList list, String str if list.containsstr return true; else return false; For the given input, you would call the function like this:List list Arrays.asListapple, banana, pear;String str pear;boolean result containsStringlist, str;The result would be true as pear is contained in the list. . Response in Sesotho: public static boolean containsStringList list, String str haeba lethathamo.le nastr kgutlela nnete; ho seng joalo busetsa leshano; Bakeng sa kenyeletso e fanoeng, o tla bitsa mosebetsi tjena: List list Arrays.asListapple, banana, pere; Khoele str pere; boolean result e na leStringlethathamo, str; Sephetho e tla ba nete kaha pere e teng lethathamong. 