I am a beginner in java and I want to output a line as follow :
"your number is (x,y) and is on the third line "
x and y are the user input and if I put a number for example 1 as x and 2 as y it add instead of putting a comma between the two numbers .
my code is as follow :
system.out.print("your number is " + (x + y)+" is on the third line ");
I hope someone can help resolve this issue