I\'m new to Java. What does the below mean?
(addition) + sign in println
System.out.println ("Count is: " + i);
It does exactly what it does outside the println method, id adds to objects:
if the objects are Strings it concatenates them:
"hello" + "world" --> "helloworld"
if the objects are numbers it adds the UNLESS there's a String to the left (or at least a String with higher precedence).
2 + 4 + "hello" --> "6hello"
"hello" + 2 + 4 --> "hello24"
"hello" + (2 + 4) --> "hello6"
if the object is any thing else it will treat them as Strings using the toString()
method