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

Can we overload the constructors?

555


Explain a situation where finally block will not be executed?

570


What is the point of java?

546


What is the purpose of garbage collection in java? When is it used?

534


What is a literal coding?

508






What type of variable is error flag?

581


When can you say a graph to be a tree?

635


Is a char always 1 byte?

500


why doesn't java run on all platforms?

565


What are the difference between string, string builder, and string buffer in java?

549


What is meant by object?

570


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1068


Where is the find and replace?

526


What is binary tree in java?

524


Can we use synchronized block for primitives?

598