Hi. Does anyone have an idea why it doesn't work? I'm getting correct output
package com.codegym.task.task07.task0703;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
/*
Lonely arrays interact
*/
public class Solution {
public static void main(String[] args) throws Exception {
String[] strings = new String[10];
int[] ints = new int[10];
Scanner s = new Scanner(System.in);
for(int i=0; i<10; i++) {
strings[i] = s.next();
ints[i] = strings[i].length();
}
for(int i=0; i<10; i++) {
System.out.println(ints[i]);
}
}
}