I did not find this hard to do (it's giving correct output), but still it's still not accepting the last requirement. So, apparently, I'm still doing something wrong. Can someone help?
package com.codegym.task.task07.task0703;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
/*
Lonely arrays interact
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String[] stringList = new String[10];
int[] intList = new int[10];
for (int i = 0; i < stringList.length; i++) {
stringList[i] = reader.readLine();
intList[i] = stringList[i].length();
System.out.println(stringList[i] + " " + intList[i]);
}
}
}