This is very simple program of Java. In this lesson we will learn how to display arrange form of two dimensional array program. Firstly, we have to define class "TwoDimensional ". We are going to make a integer for array declaration Two dimensional array program. We are going to using for loop for performing the five rows and five columns.
Now applying the for loop and define an integer ' i' and it should be either less then" 5" or "j" in another for loop. Here in the second loop "j" the number of times to print. So the output will be display on the command prompt by using the println() method.
Here is the code of this program
Posted on: June 25, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles