Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

"\t"  RSS feed

 
diaa baraka
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how many spaces does "\t" make?

 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
diaa baraka wrote:how many spaces does "\t" make?



Assuming that the output device uses it as a tab then at least 1 and up to the 'tab size' setting for the device. Typically this is between 1 and 8 but for most output devices that accept tabs it can be configured. The 'tab' adds spaces to take the output to the next tab boundary (multiple of the tab size).
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!