Ok. Here is the way you can append/concatenate two variables values:

Code:
str="";
str1="";
x="value of x";
y="value of y";

str = str + x + y;
str1 = str1 + x + "\n" + y;

System.out.println("str value: " + str);
System.out.println("str1 value: " + str1);
The output of the above code will be:
Code:
str value: value of xvalue of y
str1 value: value of x
value of y
Stormstreet like this