Remove all short words (that is, words of length at most 3) from an array. Move down the remaining array elements to fit the gaps. Don't change the order of the elements. Fill the unused portion at the end of the array with empty strings.

For example, if you start with an array containing

"Mary", "had", "a", "little", "lamb" 

you would end up with an array containing the five strings

"Mary", "little", "lamb", "", ""

Complete the following file:

public class Words { /** Removes all short words (length <= 3) from an array. The order of the remaining element is left unchanged. The unused end of the array is filled with empty strings. @param words the array from which the short words are to be removed */ public static void removeShortWords(String[] words) { // your work here } }

Use the following file:

import java.util.Arrays;

public class WordsTester
  public static void main(String[] args)
      String[] sentence = { "Mary", "had", "a", "little", "lamb" };
      Words words = new Words();
      System.out.println("Expected: [Mary, little, lamb, , ]");