title: How to check character values on a String array?
body: <p>I was asked to write a Java program which gets 5 strings from user and collects it in an array. Furthermore, I need to check every single string in the array and only print the ones who has more than four characters. </p>
  
  <pre><code>public static void main(String[] args) {
      Scanner mbk = new Scanner(System.in);
      int repetition[] = { 1, 2, 3, 4, 5 };
      String words[] = new String[repetition.length];
      for (int i = 0; i &lt; words.length; i++) {
          System.out.println("Please enter element " + repetition[i] + ":");
          words[i] = mbk.nextLine();
      }
  }
  </code></pre>
  
  <p>This is the code that I have written and I'm stuck. Can anyone help?</p>