Archive for May, 2008

6
May

Everyone of us has a special purpose of our programming and the most important thing is findind the right tool to gain the purpose. Till now, there have been different programming platforms delivered to the programming world. Some of them have general usage and some other are being used for special usages.

Microsoft and it’s products are known as some dolls; People pray them so that there
is no difference between Operating System and Microsoft Windows in my country. Somehow this case also is going on in other countries. Because of this, Microsoft Programming IDEs can attracts the most of the programming beginners. So, Microsoft have been able to get many developers for it’s Microsoft Visual Stadio 98 and Microsoft Visual Studio.NET.
Read the rest of this entry »

6
May

Bubble Sort on the Baseball Players

Imagine that you’re near-sighted (like a computer program) so that you can see only two of the baseball players at the same time, if they’re next to each other and if you stand very close to them. Given this impediment, how would you sort them? Let’s assume there are N players, and the positions they’re standing in are numbered from 0 on the left to N-1 on the right.

The bubble sort routine works like this: You start at the left end of the line and compare the two kids in positions 0 and 1. If the one on the left (in 0) is taller, you swap them. If the one on the right is taller, you don’t do anything. Then you move over one position and compare the kids in positions 1 and 2. Again, if the one on the left is taller, you swap them.
Read the rest of this entry »

6
May

Among the defining characteristics of Java is its built-in support for multithreaded programming. This support, which has been present in Java from the start, is provided by the Thread class, the Runnable interface, several methods supplied by Object, and the synchronized keyword. Multithreading enables you to write programs that contain two or more separate paths of execution that can execute concurrently. Each path of execution is called a thread. Through the careful use of multithreading, you can create programs that make efficient use of system resources and maintain a responsive
user interface.
Read the rest of this entry »