# How to add a space while concatenating a string "You are" with a byte 20

**URL:** <https://forum.codewithmosh.com/t/how-to-add-a-space-while-concatenating-a-string-you-are-with-a-byte-20/8296>\
**Category:** Java\
**Created:** [November 3, 2021, 2:56pm UTC](https://forum.codewithmosh.com/t/how-to-add-a-space-while-concatenating-a-string-you-are-with-a-byte-20/8296 "2021-11-03T14:56:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![viscountessk](https://avatars.discourse-cdn.com/v4/letter/v/7feea3/32.png) [@viscountessk](https://forum.codewithmosh.com/u/viscountessk)\
**Post date:** [November 3, 2021, 2:56pm UTC](https://forum.codewithmosh.com/t/how-to-add-a-space-while-concatenating-a-string-you-are-with-a-byte-20/8296/1 "2021-11-03T14:56:03Z")

</div>

Please help . In the reading input class my terminal is producing You are20 instead of You are 20. What could I be doing wrong. I am using java 15 . I also observed while typing system. in , my in had input stream on the far right while mosh’s in had null written next to it

---

<div class="post-metadata">

**Author:** ![ColdCoolMax](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@ColdCoolMax](https://forum.codewithmosh.com/u/ColdCoolMax)\
**Post date:** [November 7, 2021, 5:47am UTC](https://forum.codewithmosh.com/t/how-to-add-a-space-while-concatenating-a-string-you-are-with-a-byte-20/8296/2 "2021-11-07T05:47:49Z")

</div>

Hi. I believe u are refering to Java Part 1: 16- Reading Input. Just make sure spacebar is include when you type the code System.out.println.

Code example:

```auto
// with space
System.out.println("You are " + age);
// without space
System.out.println("You are" + age);
```

---

<div class="post-metadata">

**Author:** ![viscountessk](https://avatars.discourse-cdn.com/v4/letter/v/7feea3/32.png) [@viscountessk](https://forum.codewithmosh.com/u/viscountessk)\
**Post date:** [November 8, 2021, 10:28am UTC](https://forum.codewithmosh.com/t/how-to-add-a-space-while-concatenating-a-string-you-are-with-a-byte-20/8296/3 "2021-11-08T10:28:06Z")

</div>

Thanks cool Max you are quite right
