Just print the space in your for loop
char[] guessWord = new char[word.length()];
for (int i = 0; i < guessWord.length; i++){
guessWord[i] = '_';
System.out.print(guessWord[i] + " ");
}
System.out.println();
solved Adding a space in between underscores