<prompt> Ngola lenaneo la Java ho hatisa litumello tsohle tsa sehlopha.nan  <response>: Instruction in English: Write a Java program to print all permutations of an array. . Response in English: Here is a Java program that can be used to print all permutations of an array:javaimport java.util.Arrays;public class Permutations public static void mainString args int array 1, 2, 3; permutatearray, array.length; private static void permutateint array, int n if n 1 System.out.printlnArrays.toStringarray; return; for int i 0; i n; i swaparray, i, n - 1; permutatearray, n - 1; swaparray, i, n - 1; private static void swapint array, int i, int j int temp arrayi; arrayi arrayj; arrayj temp; This program uses recursion to print all permutations of a given array. The main method calls the permutate method, which takes the array and its length as arguments. The permutate method swaps elements of the array and recursively calls itself until all permutations have been printed. Then the swap method is used to swap the elements back to their original positions. . Response in Sesotho: Mona ke lenaneo la Java le ka sebelisoang ho hatisa litumello tsohle tsa sehlopha: java import java.util.Arrays; Litumello tsa sehlopha sa sechaba public static void mainString args int array 1, 2, 3; permutatesehlopha, array.bolelele; private static void permutateint array, int n haeba n 1 System.out.printlnArrays.toStringarray; khutla; bakeng sa int i 0; i 