<prompt> orodha: apple, banana, pear, kamba: pearKuandika Java kazi ambayo inachukua katika orodha na kamba na anarudi kweli kama kamba ni zilizomo katika orodha, vinginevyo uongo.  <response>: 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. 