Adding spaces between variables in JAVA

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)+".");

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.

2 Likes

Thanks for your time, that worked.