+ 1
Why do use ""+" in system.out.println in java ?
6 odpowiedzi
+ 7
To add things together... If you use it on two strings, it will print both consecutively. If you have two numbers, it will add them and output.
0
string+string = concatenation
System.out.println("Solo"+"Learn");
0
no i meant in other data typea
0
i got it when want to display a sentence and a value after it we put the sentence inside the "" and we add + then the variable that we want to display its value
0
strings+string/string+num = concatenation
num+num = add
0
yes yes thanks man