• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java syntax  RSS feed

 
amir Ghannad
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

How do I insert space between my int and the statement?

My out put it is: A heptagon has7 sides .

what I want is: A heptagon has 7 sides .

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same way you got a space after the int.
 
Liutauras Vilda
Sheriff
Posts: 4928
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure OP understood.

The spaces within the quotes are actual symbols and they are being represented during the output. So it can be helpful solving your problem.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:The same way you got a space after the int.

which is the same space before the word "sides".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!