I want to print an array that generates it in the following form
public String buscar(){
numero = (int) (Math.random() * 3) + 1;
palabra = libreria[numero];
return palabra;
}
public void cambiar(){
for(int i = 0 ; i < palabra.length() ; i++ ){
aux [i] = "_";
}
}
What I want is to change the word to a "_" is for a game of hangman but to print it in a JTextField with display.setText(aux.toString());
[Ljava.lang.String; @