<prompt> Ho Java, ngola khoutu ho hlahloba hore na likhoele tse peli ke anagrams.nan  <response>: Instruction in English: In Java, write a code to check if two strings are anagrams. . Response in English: Here is one way of checking if two strings are anagrams in Java:javaimport java.util.Arrays; public class Anagram public static boolean isAnagramString str1, String str2 check if the length of the strings are equal if str1.length ! str2.length return false; Convert the strings to character arrays char str1Array str1.toCharArray; char str2Array str2.toCharArray; Sort the arrays Arrays.sortstr1Array; Arrays.sortstr2Array; Compare the sorted arrays return Arrays.equalsstr1Array, str2Array; public static void mainString args String str1 listen; String str2 silent; if isAnagramstr1, str2 System.out.printlnstr1 and str2 are anagrams; else System.out.printlnstr1 and str2 are not anagrams; This function compares the length of the two strings and if they are the same, the function proceeds with converting the strings to character arrays so that they can be sorted. Once the arrays are sorted, we can compare them using the Arrays.equals method to see if they have the same characters in the same frequency. If the sorted arrays are equal, then the two strings are considered anagrams. In the main method, we have shown an example of calling this method to check if two strings listen and silent are anagrams or not. . Response in Sesotho: Mona ke mokhoa o mong oa ho hlahloba hore na likhoele tse peli ke anagrams ho Java: java import java.util.Arrays; sehlopha sa sechaba Anagram public static boolean isAnagramString str1, String str2 hlahloba hore na bolelele ba likhoele bo lekana haeba str1.length ! str2.length khutlela bohata; Fetolela likhoele ho lihlopha tsa litlhaku char str1Array str1.toCharArray; char str2Array str2.toCharArray; Hlopha lihlopha tsa Arrays.hlophastr1Array; Li-arrays.sortstr2Array; Bapisa lihlopha tse hlophisitsoeng khutlisetsa Arrays.equalsstr1Array, str2Array; public static void mainString args String str1 mamela; Khoele str2 khutsa; haeba isAnagramstr1, str2 System.out.printlnstr1 le str2 ke li-anagrams; e ngoe System.out.printlnstr1 le str2 ha se li-anagrams; Mosebetsi ona o bapisa bolelele ba likhoele tse peli me haeba li tšoana, mosebetsi o tsoela pele ka ho fetolela likhoele ho lihlopha tsa litlhaku e le hore li ka hlophisoa. Hang ha lihlopha li hlophisoa, re ka li bapisa ka mokhoa oa Arrays.equals ho bona hore na li na le litlhaku tse tšoanang maqhubung a tšoanang. Haeba lihlopha tse hlophisitsoeng li lekana, joale likhoele tse peli li nkoa e le li-anagrams. Ka mokhoa oa main, re bontsitse mohlala oa ho bitsa mokhoa ona ho hlahloba hore na likhoele tse peli mamela le khutsa ke anagrams kapa che. 