I was trying out a few things just now in Android Studio and the following piece of code worked without a compiler or runtime error and gave the right answer.
cmessage1.setText(AppData.hcptotal + 2.3/7 + " HCP");
Appdata.hcptotal is an integer with a value of 10. The text displays as 10.32857142857143 HCP so this setText method is allowing integers and doubles to be mixed together and to participate in mathematical calculations AND being mixed with strings! I didn't know this was possible. The official documentation doesn't appear to show that this is allowed. And other posts on this site indicate that the.setText method parameter must be a string.
Can anyone shed any light on this extraordinarily versatile (and new?) facility?