//java 增量运算符
public class Test16{
    public static void main(String args[])
    {
        int x1=10;
        x1+=3; 
        //x1=x1+3,注意这里不用再定义int x1=x1+3,前面已确定了x1的数据类型
        System.out.println(x1);
    }
}

//result:13

 

相关文章:

  • 2021-09-23
  • 2022-12-23
  • 2022-01-03
  • 2021-08-27
  • 2021-12-19
  • 2021-06-30
  • 2021-06-27
  • 2022-12-23
猜你喜欢
  • 2021-05-18
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2021-06-06
  • 2021-11-27
  • 2021-12-27
相关资源
相似解决方案