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

What is the use of keywords in java?

0 Answers  


How can you add and remove nodes in jtree?

0 Answers  


How many inner classes can a class have?

0 Answers  


How do you reverse a list?

0 Answers  


how to make a un-checked exception as a checked exception one.

2 Answers  


What is * argv?

0 Answers  


What is data abstraction? Elaborate with example?

4 Answers   BMC, TCS,


how to make the double-tone class ? as we have singletone class..?

1 Answers   IBM, Microsoft,


WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?

4 Answers  


What is difference between an object and a class?

0 Answers   Amdocs,


What is ascii code?

0 Answers  


How to add two numbers with out using Arithmetic , union operators in java....? But we can use bitwise operators... but how...?

4 Answers   CTS, Satyam,


Categories