It is printing 10 numbers respective to the string array index but is not being verified.
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
String[] string = new String[10];
int [] stringLength = new int[10];
Scanner sc = new Scanner(System.in);
for(int i=0;i<10;i++)
{
string[i] = sc.next();
}
for(int i=0;i<10;i++)
{
stringLength[i] = string[i].length();
}
for(int i=0;i<10;i++)
{
System.out.println(stringLength[i]);
}
}
}