Is there any performance difference in the following java / android code?

后端 未结 0 831
一整个雨季
一整个雨季 2020-12-05 07:27

Question1:

Case 1a:
private int method1a(int x, int y, int z){
    return 1 + (x-y)/z;   //int division here
}

Case 1b:
private int method1b(int x, int y, in         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题