whileloop 4-3

Post date: Feb 1, 2014 4:50:11 PM

/*

* To change this template, choose Tools | Templates

* and open the template in the editor.

*/

//This program demonstrates the while loop.

package whileloop;

public class WhileLoop {

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

// TODO code application logic here

int number = 1;

while (number <=5)

{

System.out.println("Hello");

number++;

}

System.out.println("That's all ! " );

}

}