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
How do you do math powers in java?
What is the difference between Error, defect,fault, failure and mistake?
Explain the init method?
What is the difference between assignment and initialization?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
How are the elements of a gridbaglayout organized in java programming?
What is difference between wait and notify in java?
What are the advantages of compiled language?
What is boolean strategy?
What is udp in java?
What is data type in computer?
What is string literal in java?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What is the synonym of framework?
Does A Class Inherit The Constructors Of Its Superclass?