- 1

How to output two numbers consequently in java

..

1st Feb 2020, 9:01 AM
Nikhil Yadav
Nikhil Yadav - avatar
4 Respostas
+ 1
Use print and not println if that is what you are trying to ask.
1st Feb 2020, 9:08 AM
Avinesh
Avinesh - avatar
+ 1
It should be- ("Numbers after swapping are = "+a+","+b)
1st Feb 2020, 9:19 AM
Avinesh
Avinesh - avatar
0
Bro tell me if this is correct System.out.println("numbers after swapping are"=+a,+b); I want comma btwn two numbers when they are displayed
1st Feb 2020, 9:11 AM
Nikhil Yadav
Nikhil Yadav - avatar
0
Ok..thanks bro
1st Feb 2020, 9:20 AM
Nikhil Yadav
Nikhil Yadav - avatar