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

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

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:

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

Thanks cool Max you are quite right