Adding spaces between variables in JAVA

Adding spaces between variables in JAVA
0

#1

Hi,

How can I add a space between these three characters the variables?

System.out.println("Please insert the relevant grade for each of the units"+(PASS)+ (MER)+ (DIST)+".");

#2

System.out.println("Please insert the relevant grade for each of the units "+(PASS)+ " " + (MER)+ " " + (DIST)+".");

Haven’t used Java so I’m not 100% sure but I guess it can be done like so.


#3

Thanks for your time, that worked.