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
Explain the difference between arraylist and linkedlist in java?
Why does abstract class have constructor?
What is Java Annotations?
What do you mean by light weight and heavy weight components?
What is the method overriding?
What are meta-annotations?
What are constructors in java?
How to perform bubble sort in java?
What is the method to declare member of a class static?
What are the kinds of polymorphism?
What is the requirement of thread in java?
What is the intersection and union methods?
What is hotjava?
Who is founder of java?
What are the four versions of java?