When you give a string + any data type ( like "test" + float or "one" + int ), java will automatically convert the other data type and concatenate it into the string!
This is one of the advantages in Java. And String[] points to an array and will only work if you pass an array, instead of a single String!
|