I've written this code and it is providing the correct output. Yet, the 4th requirement isn't passing. Any suggestions?
package com.codegym.task.task07.task0703;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/*
Lonely arrays interact

*/

public class Solution {
    public static void main(String[] args) throws Exception {
        //write your code here
        int[] intArray = new int[10];
        String[] stringArray = new String[10];

        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        for (int x = 0; x < 10; x++) {
            String s = input.readLine();
            int i = s.length();
            intArray[x] = i;
            stringArray[x] = s;
        }
        for (int y = 0; y < 9; y++) {
            System.out.println(intArray[y]);
        }
    }
}