Say, for example, I have a double variable in Java:
double alpha = 3;
However, I wanted to create a String variable, including that Double Variable:
String beta = "Alpha has a value of " + alpha;
So that the output would be
//Output
Alpha has the value of 3
However, it will not let me do so, as it says the double value cannot be included in the string value.
As I am doing this for around 150 variables, I want to know how to do it the simplest and shortest way.
Thanks