Hi,
I have taken a look at some of the other solutions in the help section; I cannot find significant differences in my code. can someone please take a peek and see what I am doing wrong?
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 {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String[] strList = new String[10];
int[] intList = new int[10];
for (int i = 0; i<=9; i++){
strList[i]= reader.readLine();
//System.out.println(strList[i]);
}
for (int j = 0; j<=strList.length; j++){
intList[j] = strList[j].length();
System.out.println(intList[j]);
}
}
}