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.
Hey there, it has been a long time last time i wrote here. Sorry for that but i still do not get the idea of having personal blog; yet, writing is quite weird, ha? Anyway, i started to plan change the concept of this domain but till then i may wanna post personal things here and here is one.
Recently, I watched Shawshank Redemption, as the title suggest, it was nice, but i cannot say that was the best, although most of the people think Shawshank Redemption is a best movie ever. But the main reason i want to blog now is to share a funny video about Shawshank Redemption ( it is still hard to spell it for me). Maybe you have already watch it or not here is the video from Youtube, made by JibJab.
Attention: If u have not already watch the movie, i am sure you do not get any fuckin’ idea about the video, since i experienced. So, if you did not alreadt watch it, please go watch it and come watch this video again!
Did you like it?
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.