Pls I can't find my error
package com.codegym.task.task07.task0703;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
/*
Lonely arrays interact
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner word = new Scanner(System.in);
String [] str = new String [10];
int [] num = new int [10];
for (int j = 0; j <= str.length; j++){
str[j]=word.next();
}
for (int j = 0; j <= 10; j++){
num[j]=str[j].length();
}
System.out.println(num[j]);
}
}