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

哪里错了帮我看下 谢谢

public class HelloWorld{

    public static void main(String[] args) {

   int one = 10 ;

        int two = 20 ;

        int three = 0 ;

        three = one + two;

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

        three += one ;

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

        three -= one ;

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

        three *= one ;

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

        three /= one ;

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

        three %= one ;

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


提问者:慕运维7586783 2018-11-13 22:08

个回答

  • 慕移动0851642
    2018-11-13 22:20:54

    兄弟你真是个天才,println打成printlh,还有,少了两个结束的}