Sunday, December 14, 2008

Program2: Length of the array

Import java.util.*;

Pubic class test5

{

Public static void main(String[] args)

{

int num[] = {50,20,45,82,25,63};
int l = num.length;

System.out.println(“The length of the array”+l);
}

}

No comments: