As Output I only get ten times the full length of b instead of an increasing length with every new String.
package de.codegym.task.task07.task0703;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Einsame Arrays interagieren
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader a = new BufferedReader(new InputStreamReader(System.in));
String[] b = new String[10];
int[] c = new int[10];
for(int i = 0; i < b.length; i++){
b[i] = a.readLine();
c[i]=b.length;
System.out.println(c[i]);
}
}
}