问答详情
源自:3-3 Java中的赋值运算符

输出的规范

 System.out.println("three=one+two==>"+three=one+two);

提问者:Iwantarealanswer 2017-01-14 21:29

个回答

  • 幕粉2929637
    2017-01-14 21:41:52

    public class HelloWorld{

        public static void main(String[] args) {

       int one = 10 ;

            int two = 20 ;

            int three = 0 ;

            three=one+two;

            System.out.println("three=one+two==>"+three);

            three+=one;

            System.out.println("three+=one==>"+three);