for(i=0;i<100;i++)
{
int i=method();//method returns no's from 1 to 10;
/*
insert some stmts which can give output like no.of times
numbers(1-10) returned. (for example if it returns 2 then i
want output how many times 2 returned) like that i want
output for no's 1 - 10 how many times each no returned.
*/
}
Answer Posted / $ourav
static int []arr=new int[10];
arr[i]++;
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are adapter classes?
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is finally and finalize in java?
What is indexof?
Explain about doubly linked list
What is a java lambda expression?
What is variable argument in java?
Can you have two constructors in java?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is comparable and comparator interface? List their differences
What is lambda expression in java?
How do you replace all in word?
What is the difference between jdk, jre, and jvm?
In java, how we can disallow serialization of variables?
What is thread safe in java?