I hit some strange String concatenation syntax when writing some code and was surprised to find that it compiles.
quota.setText("Cloud storage: " + used + " (" + + + + quotaUsed / quotaAvailable * 100 + " of " + total);
The strange part is around the four continuous + operators (I was going to place more strings between them, and I was surprised there were no red squiggly lines underneath them. quotaUsed
and quotaAvailable
are long
s and used
and total
are Strings.
Can anyone explain how the system will interpret that statement?