I am writing some code right now and I haven't done this in a while, how would I use the println function to write both a string and a variable?
I tried the following:
System.out.println("randomtext"var);
and
System.out.println("randomtext",var);
Neither of those seemed to work, what am I doing wrong? How do I do this?