String to Character Array
<p>I have a problem with my code below:</p>

<pre><code>public class stringToChar {
public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    char[] sCharArr;
    String[] odd = new String[n];
    String[] even = new String[n];
    for(int i = 0; i &lt; n; i++) {
        sCharArr = in.next().toCharArray();
        for(int j = 0; j &lt; sCharArr.length; j++) {
            if(j % 2 == 0)
                even[i] += sCharArr[j];
            else
                odd[i] += sCharArr[j];
        }
   }
   for(int i = 0; i &lt; n; i++) {
       System.out.println(even[i] + "  " + odd[i]);
   }
 }
}
</code></pre>

<p>My issue is on the output it has a <code>Null</code> in the result. Here is a sample scenario:</p>

<pre><code>2
John
Cena
</code></pre>

<p>Answer should be:</p>

<pre><code>Jh  on
Cn  ea
</code></pre>

<p>But my code answer is:</p>

<pre><code>NullJh  Nullon
NullCn  Nullea
</code></pre>