Pattern problem (basic java implementation)

why giving \t and 4 space does not do the same work while printing the number pattern

because sometimes online judge doesn’t recognize tab characters as just plain spaces.