@Test void getMiddleIndexTest() { assertEquals(5, Utils.getMiddleIndex(0, 10)); }
static public int getMiddleIndex(int beginIndex, int endIndex) { return beginIndex + (endIndex - beginIndex) / 2; }
Utils { static public int getMiddleIndex(int beginIndex, int endIndex) { return beginIndex + (endIndex - beginIndex) / 2; } }
Utils { static public int getMiddleIndex(int beginIndex, int endIndex) { return beginIndex + (endIndex - beginIndex) / 2; }  }
Utils { static public int getMiddleIndex(int beginIndex, int endIndex) { return beginIndex + (endIndex - beginIndex) / 2; }  static int getMiddleIndex(int beginIndex, int endIndex); static void main(String[] args); static int[] getRandomIntArray(Random rand, int size); static Integer[] getRandomIntegerArray(Random rand, int size); static Integer[] getRandomIntegerArray(Random rand, int size, int range); static List<Integer> getRandomIntegerList(Random rand, int size); static List<Integer> getRandomIntegerList(Random rand, int size, int range); static Deque<?>[] createEmptyDequeArray(int size); static List<?>[] createEmptyListArray(int size); static String join(long[] array, String delim); static String join(List<T> list, String delim); }
Utils { static public int getMiddleIndex(int beginIndex, int endIndex) { return beginIndex + (endIndex - beginIndex) / 2; }  static int getMiddleIndex(int beginIndex, int endIndex); static void main(String[] args); static int[] getRandomIntArray(Random rand, int size); static Integer[] getRandomIntegerArray(Random rand, int size); static Integer[] getRandomIntegerArray(Random rand, int size, int range); static List<Integer> getRandomIntegerList(Random rand, int size); static List<Integer> getRandomIntegerList(Random rand, int size, int range); static Deque<?>[] createEmptyDequeArray(int size); static List<?>[] createEmptyListArray(int size); static String join(long[] array, String delim); static String join(List<T> list, String delim);  }