public static void bullbedSort(int[] a){
int temp;
for(int i = 0 ;i<a.length;i++){
for(int j = a.length-1;j>i;j--){
if(a[j]<a[j-1]){
temp = a[j];
a[j] = a[j-1];
a[j-1] = a[j];
}
}
}
}
public static void bullbedSort(int[] a){
int temp;
for(int i = 0 ;i<a.length;i++){
for(int j = a.length-1;j>i;j--){
if(a[j]<a[j-1]){
temp = a[j];
a[j] = a[j-1];
a[j-1] = a[j];
}
}
}
}
ThreadLocal的使用,,,實際上相當於維護了一個Map,其中以鍵值對的形式,存儲了某一個數據被多個線程訪問所對應的值。當然這個數據只能有
JSONArray序列化日期最初用到, 這個是全局設置,會有風險。 String[] dateFormats = new String[] {"yyyyMMdd"}; JSONUtils.getM