I have tried "
" to display two spaces in a standard output Java String. Trying System.out.println("__");
<---- (two spaces, but, obviously, it trims it down to one space, hence the underscore)
I imagine there is a way to escape the
, but I can not figure it out nor find help online. Searching for it is ironic because a lot of literal
show up.
Any help would be appreciated.
EDIT:
for (int j = 0; j < COLUMNS; j++)
if (j < 10){
r += "__";
}
produces 10 spaces, not 20 like expected when printed
sorry I am still new at formatting here