Browse Source

collects

master
tangmingyou 4 years ago
parent
commit
5ce86b6a8a
  1. 23
      im-common/src/main/java/net/sopod/soim/common/util/Collects.java

23
im-common/src/main/java/net/sopod/soim/common/util/Collects.java

@ -0,0 +1,23 @@
package net.sopod.soim.common.util;
/**
* Collects
*
* @author tmy
* @date 2022-04-22 10:17
*/
public class Collects {
/**
* 数组翻转
*/
public static long[] revers(long[] arr) {
for (int i = 0, j = arr.length - 1; i < j; i++, j--) {
long temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
return arr;
}
}
Loading…
Cancel
Save