title: fill array with character in string
body: <p>I'm trying to write a code that fill the array with the specific character in a string.</p>
  
  <p>For example</p>
  
  <pre><code>String s = "abcdefghijklmnopqrstuv";
  String[] arr = new String[5];
  int x = 0;    
  
  for (int i = 0; i &lt; 5; i++) {
      arr[i] = s.charAt(x);
      x += 2;
  }
  </code></pre>
  
  <p>An error shows up "Incompatible types"</p>
  
  <p>How to fix this? I'm new to java. </p>
  
  <hr>
  
  <p>Solved! Thanks!</p>