I have the code below where i take an array of string and i convert to an array of char.
How can i transform it so i use the lambda function?
int m = 1;
for (String v : value) if (v.length() >= m) m = v.length();
char[][] a = new char[value.length][m];
for (int i = 0; i < value.length; i++) a[i] = value[i].toCharArray();
return countOcc(a);
}```
i tried using `Arrays.stream().foreach()` but when i do things like c++ it gives me an error
New contributor
user26739015 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.