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
Can private members of a base class are inheritable justify?
How many bits is a 64 bit byte?
What is the function of java?
How do we access static members in java?
What is the exact difference in between unicast and multicast object? Where we will use?
How many types of exception can occur in a java program?
What is supplier in java?
Are generics important java?
How can we create a synchronized collection from given collection?
Difference between overriding and overloading in java?
Can you access the private method from outside the class?
Can we call the constructor of a class more than once for an object?
What is the char data type?
What is formatted output in java?
What is a module function?