Console doesnt print tabs (\t) proprely ?? help

Answered

So i am doing a school project where tldr we need to show grids with nubers in them. Very simple stuff. The actual output is supposed to look like picture 1 (captured from the teacher's eclipse console) but for some reason the console in intellij just doesnt print the tab if the number printed right before it is single digit ???? i need help with this one.


1
11 comments

Does it work correctly if you run the same code in the Terminal?

0
Avatar
Permanently deleted user

How do I do that?

0
Avatar
Permanently deleted user

ok if i compile it in an artifact (jar) then run that artifact yes it shows up correctly. i still want to know /fix the problem i have tho

0

Works in IntelliJ IDEA or in the command line?

0
Avatar
Permanently deleted user

in the command line it works correctly but not in intellij idea

0
Avatar
Permanently deleted user

it is. are there any fixes available ?

0
Avatar
Permanently deleted user

actually, it seems related but for me it is explicitely only in the run window that i have the issue

0
Avatar
Permanently deleted user

i discovered that if i add a space after the int in my print, it fixes it. any chances of there being an actual fix so the run window doesnt do that ??

0

There is no fix right now.

0

Please sign in to leave a comment.