Just found the answer and in order not to lose it i want to share it. The answer is as easy as pie.
RENAME TABLE formername TO newname;
Source: Tech-Recipes
Tak Takkk
Just found the answer and in order not to lose it i want to share it. The answer is as easy as pie.
RENAME TABLE formername TO newname;
Source: Tech-Recipes
I am writing this post because i cannot find the code or idea to sort an Array without using Arrays class and its methods on the Internet. Here is methods that i wrote to sort an Array in a descending way. BTW, i write to methods to achieve this, one finds the maximum value in the array and returns the its index, the other one use first array and sort the Array.
public int getMaxArray(int[] a, int start){
int max = 0;
int index = 0;
for(int i = start; i<a.length;i++){
if(a[i]>max){
max = a[i];
index = i;
}
}
return index;
}
//The method that uses the first one to find the index of maximum element in the Array.
public int[] sorted(int[] a){
int temp = 0;
for(int i = 0;i<a.length;i++){
int maxIndex = getMaxArray(a, i);
temp = a[i];
a[i] = a[maxIndex];
a[maxIndex] = temp;
}
return a;
}
This is it. You can optimize the code, i think. Since i have just write to code and put it on the web with all of my pleasure, there might be some reductions in the code.
Başarmak için Başarısızlıklarımızla Barışık olmamız lazım! - Levent Yeşil
Bu söz Bilkent’te seminerin birinde söylenmişti, ancak şu anda hangi seminerdi veya konuşmacı kimdi hiçbir şey hatırlamıyorum ve bu sözü de hiç adetim değildir ama bir kağıda not almışım ve o kağıda geçen gün rast gelince bari kaybetmeden buraya aktarayım istedim.

Az önce elime geçen bir kitabın içindekiler kısmında geçen Bertrand varsayımından bahsetmek istiyorum ama önce. Ne kadar gariptir ki, artık insan kitabın içindekiler bölümünde gördüğü şeyi nedense gidip wikipedia’dan bakıyor. (Nereye doğru gidiyoruz böyle.) Neyse, wikipedia’ya göre Bertrand Teoremi derki;
Eğer 3 ten büyük herhangi bir sayı için, o sayı ile o sayının iki katının iki eksiği arasında bir asal sayı mevcuttur. Bunu fomülize edecek olursak.
Sayımız n>3 olsun. Ve asal sayıya da “a” diyelim. O zaman förmül: n < a < 2n - 2′ dir.
Bertrand isminin nereden geldiği konusunda eminim kesin akla gelen kesin bu varsayımı ortaya atan kişidir cevabı gelmiştir. Evet kesinlikle öyle. Joseph Louis François Bertrand adlı Fransız matematikçi. 1822 yılında doğmuş 1900 yılında ölmüş. Kendisi daha çok termodinamik, differansiyel denklemler, olasılık teorisi ve sayılar teorisi(number theory) üzerinde çalışmış.
Merak edenler için elime geçen kitabın adı: Number Theory With Applications. Yazar: James A. Andersen ve James M. Bell.