how to accept integer array in java

Answers were Sorted based on User's Feedback



how to accept integer array in java..

Answer / 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

how to accept integer array in java..

Answer / pavan kumar

int [] arrayreferencename=new int[size]

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

how to write a program for chat function using core java

1 Answers   Satyam,


How can you generate random numbers in java?

0 Answers  


What kind of variables can a class consist?

0 Answers  


What are the main differences between notify and notifyAll in Java?

0 Answers  


What is the difference between import java.util.date and java .util?

0 Answers  






How to validate the request (Eg:user name and password) in session(http session)? not in LDAP server ?

1 Answers   Saksoft,


Explain about java sdk?

0 Answers  


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

0 Answers  


What is a pattern what is an anti pattern?

0 Answers  


What is a class component?

0 Answers  


what are the methods in object?

0 Answers   IBS,


What are the uses of synchronized keyword?

0 Answers  


Categories