Monday, June 21, 2010

Algorithm

'algorithm' is an effective method for solving a problem expressed as a finite sequence of instructions.

step by step procedure to solve the problem.

Thursday, June 3, 2010

Array

Array is very important in programming to store data in array. i post the lesson next day.

Monday, May 3, 2010

jaypee's world programmer: Array

http://www.jaypeeworldprogrammer.blogspot.com

Array

An array is a collection of individual values, all of the same data type, stored in adjacent memory locations. ... The individual values are referred to by using the array name together with an integral valued index in square brackets.

I will give a sample program using array, next lesson.

java programming

this is a book in java programming 4th edition. This book serves as your guide, as well as, your foundation to be the best  java programmer ever.

Sunday, May 2, 2010

Do while Loop syntax in programming

the syntax of do while in programming:

initialization;
do
{
statements;
inc/dec;
}while(condition);

next Lesson i'll make a sample program using do while loop

Friday, April 30, 2010

for loop sample program

sample program using for loop in java.
this program will ask the user to input how many numbers they want to print:

import java.util.Scanner;

public class samplefor
{
public static void main(String args[])
{
Scanner input=new Scanner(System.in);
int num;
int x;

System.out.print("How many numbers you want to print:");
num=input.nextInt();

for(x=0; x<=num; x++)
{
System.out.println(x");
}
}
}