how to accept integer array in java

Answer Posted / saluru srinivasa rao

int []anarray=new int[10];
for(int i=0;i<=anarray.length;i++)
{
anarray[i]=i;
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State one difference between a template class and class template.

684


What is the purpose of the return statement?

606


Is java a virus?

613


What does sprintf return?

643


What java ide should I use?

623






What is the difference between Grid and Gridbaglayout?

655


What is java dot?

552


Is hashset ordered?

612


Explain about the performance aspects of core java?

617


Can a abstract class be declared final?

628


how to create constants in java?

680


Can we declare an interface as final?

636


Where is const variable stored?

593


How big is a boolean?

641


What is instanceof keyword?

802