0
why we use '+' between two string? if we don't write then also it will appear the same output.. so what is the use of that plus
4 odpowiedzi
+ 5
You can refer this Java code from line 200..
You'll see how the use of "+" increased the readability.
https://code.sololearn.com/c1h675adCP47/?ref=app
+ 4
Like tabs, enter, spaces...
Sometimes programmer wanna separe to understand better.
+ 2
+ is used to concatenate two or more strings.
+ 1
It's useful when you have a number that changes and you want to + a string to it.
int a = 10;
System.out.println("There are "+a+" apples");
--a;
System.out.println("There are "+a+" apples");