Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - The JAVA System.out.println () method outputs multiple variables.
The JAVA System.out.println () method outputs multiple variables.
I wonder if you mean System.out.println(a+b+c);

I told you it was an integer variable. My method above is for string operation. If you want to output three integers in a row, you must first convert the integer values into string types and then operate them.

you can also use the method of converting an integer to a string Integer.toString (integer variable), and the string conversion is Integer.parseInt (string variable).