Forums Register Login

Java syntax

+Pie Number of slices to send: Send
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 .

1
+Pie Number of slices to send: Send
The same way you got a space after the int.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

Bear Bibeault wrote:The same way you got a space after the int.


which is the same space before the word "sides".
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 429 times.
Similar Threads
Array problem
format a pattern output
SCJP Chapter 01 Self Test Qn no. 3
want ascii value to be printed
Multiplication Table
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:22:28.