- 博客(4)
- 收藏
- 关注
原创 点知识_123
public class MainActivity extends AppCompatActivity { private static final String TAG = "MainActivity"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCre...
2018-08-17 16:56:17 178
原创 点知识_常用排序类算法
堆排序 //堆排序 public static void heapSort(int[] arr) { for (int i = arr.length / 2 - 1; i >= 0; i--) { adjustHeap(arr, i, arr.length); } for (int j = ...
2018-08-12 00:16:12 256
原创 点知识_Java三目运算符
三目运算符在我们的代码中经常使用,但是却有一个很容易犯的错误。首先看这个程序:public class TestAlgorithm { public static void main(String[] args) { int left = 2; int right = 0; int value = Math.abs(left - r...
2018-08-12 00:10:30 314
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人