I have been learning Java for three days, I have no idea what I am doing wrong here . Every time I try to run it I get the error message "cannot find symbol" on the second half of "String resultados = Arrays.toString(resultadas);". Please explain this to me without any jargon or technical terms, my brain is too small to comprehend those words... yet
import static java.lang.Math.*;
public class SquareDigit {
public int squareDigits(int n) {
String[] result = Integer.toString(n).split("(?!^)");
int k = 0;
for (String grade : result) {
k += 1;
int resultado = Integer.valueOf(grade);
int resultada = (int) Math.pow(resultado, 2);
String[] resultadas = new String[result.length];
resultadas[k] = Integer.toString(resultada);
} String resultados = Arrays.toString(resultadas);
int finals = Integer.parseInt(resultados);
return finals;
}
}