how to accept integer array in java
Answers were Sorted based on User's Feedback
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 |
What about instanceof operator in java?
extending thread class or implementing runnable interface. Which is better? : Java thread
What is scope of a variable?
What are parent methods and how can you call them?
What is considered an anti pattern?
how session will be expired ?
What are the advantages of user defined functions?
Name few java 8 annotations ?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
define System.out.println(); what is the meaning!
Can we overload run() method in java?
How java is similar to c?