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
When do you get classcastexception?
What is the purpose of return statement?
What is the epoch date?
What is private static class in java?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
Can a class be private?
Explain the differences between abstraction and encapsulation?
What a static class can contains?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
Explain thread in java?
Can we serialize singleton class?
What is this keyword in java?
how can i use a nonsynchronized hashtable?
What is a nested class?
Is set ordered?