<prompt> Ngola algorithm ho Java ho khutlisa lethathamo.nan  <response>: Instruction in English: Write an algorithm in Java to reverse an array. . Response in English: Here is an algorithm in Java to reverse an array:javapublic static void reverseArrayint array int n array.length; int temp; Temporary varible for swap for int i 0; i n 2; i temp arrayi; arrayi arrayn - i - 1; arrayn - i - 1 temp; Here is an explanation of the algorithm:- The function takes an integer array as an input parameter.- A temporary variable temp is declared for swapping elements.- The for loop runs from 0 to n 2 where n is the length of the array.- In each iteration swapping of elements occurs, first element with the last element, second element with the second last element and so on.- This continues until the middle of the array is reached and by that time the array is reversed. . Response in Sesotho: Mona ke algorithm ho Java ho khutlisa lethathamo: java public static void reverseArrayint array int n array.length; int temp; Phetoho ea nakoana bakeng sa ho fapanyetsana int i 0; i 