Java Write a method that takes as a parameter a one dimensional array of characters and moves all characters ’*’ to the end (high indexes) of the array. If the original array is ’a’ ’b’ ’*’ ’d’ ’z’ ’*’ ’*’ ’p’ then your method should produce ’a’ ’b’ ’d’ ’z’ ’p’ ’*’ ’*’ ’*’ The relative positions of the other characters should remain unchanged. REMEMBER : Write a complete method (including methods signature with parameters and return type). DO NOT write a complete program with main, etc. Your method should manipulate the array that is passed to it. Solution public class MoveStar { public static void moveStar(char[] arr){ if(arr == null) return; int j = -1; for(int i=0; i<arr.length; i++){// skipping star if(arr[i] !=\'*\'){ arr[++j] = arr[i]; } } while(++j < arr.length)// filling remaining position with * arr[j] = \'*\'; } public static void main(String[] args) { char[] arr = {\'a\', \'b\' ,\'*\' ,\'d\' ,\'z\',\'*\', \'*\' ,\'p\'}; moveStar(arr); for(char c: arr) System.out.print(c+\" \"); } } .