i need to print 2 values same time
like
x=2;
y=4;
system.out.println(x,y);
not working
how to write that pls help
Printable View
i need to print 2 values same time
like
x=2;
y=4;
system.out.println(x,y);
not working
how to write that pls help
try concatenating the number
You need the ", " or any other double quotes, or else it will print the sum of the 2 numbers, adding double quotes turns it into a string.Code:System.out.println(x + ", " + y);