.
Home About-us Privacy Policy Contact-us Services

Friday, October 16, 2015

Java - Array Program Example - Allprogramexample

ad+1

Array Program Example - 
class array1
{
public static void main(String arg[])
{
int ar[][]={{3,5,7},{4,7,2}};
int n=ar.length;
System.out.println("The list of elements are");
for(int i=0;i<n;i++)
for (int j=0;j<n;j++)
System.out.println(ar[i][j]);
}
}

 

0 comments:

Post a Comment

Home About-us Privacy Policy Contact-us Services
Copyright © 2014 All Programs Examples | All Rights Reserved. Blogger Templates Download Blogger Templates