JAVA小練習114——自定義泛型類的練習

class MyArrays<T>{ public void reverse(T[] arr){ for(int startIndex = 0 , endIndex= arr.length-1; startIndex<endIndex ; startIndex++,endIndex--){ T temp = arr[startIndex]; arr[startIndex]
相關文章
相關標籤/搜索