Note

If you cannot find what you are looking for. Please visit our sitemap

Sunday, 22 February 2015

For Loop Example in Java

                          For Loop Example in Java




/*
         This is a Simple Program Showing Use of for loop.
          Program developed by #Asad Hussain
         This file name is "forexp.java".
*/
import java.util.*;

public class forexp {
public static void main(String args[]){

        for (int x = 0; x < 10; x++)
            System.out.println("Number " + x);
   

}
}

Output of the Given Program:
Java Program showing use of for loop Asad Hussain

Written By: Asad Hussain

No comments:

Post a Comment