Are Java arrays in a static method thread safe?

后端 未结 0 1727
悲&欢浪女
悲&欢浪女 2021-02-15 00:43
   public static int rank(int key, int[] a) {
        int lo = 0;
        int hi = a.length - 1;
        while (lo <= hi) {
            // Key is in a[lo..hi] or not          


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