Posts

Writing Our First Program in Java - HELLO WORLD !

Image
  Before we can start writing our first lines of code we need to download and install an IDE that supports Java.  For our tutorials I will be using the IntelliJ IDEA, which you can download from here . Once you have downloaded and installed the IDE we can begin. First of all we need to create a new java project, which can be done by clicking on new project Next window select java and select the JDK and move to the next step by clicking next. If you don't have any available JDKs then simply go to download JDK and download the Oracle Open JDK.  In the next step select create project from template and select command line app and click on next  In the next step give the project a name and click on finish, In this case I will name the project "HelloWorld'. Now that the project is created for you, we can move on to the next step and write our first lines of code. You will be presented with a window with a few lines of code that looks as follows. At first it can be intimida...

Algorithms, What are They ?

Image
  Algorithms are simply a set of instructions executed according to a predefined order in order to accomplish a task. Any basic task could have an algorithm, algorithms are not just simply available in computer science or mathematics but rather can be found in everyday life as well. For example the simple task of making a cup of tea has an algorithm. we follow a set of instructions step by step in a predefined order to achieve the task of making a nice cup of tea. Defining an algorithm can be done in many forms. The easiest form of defining an algorithm is simply by writing it down step by step in simple English. Let see an example of an algorithm. As I mentioned above making a cup of tea can be defined using an algorithm. Step 1 - Fill up the kettle with water Step 2 - Place the kettle on the stove Step 3 - Wait patiently for the water to boil Step 4 - Get a cup and place a tea bag in the cup Step 5 - Pour the boiling water into the cup with the tea bag Step 6 - Stir it well Ste...