posted 15 years ago
I like to add some more details
class A
{
/*
User Should pass only an Array of material Type
*/
Void doSomeThing(Materila[] d)
{
//dosomething
}
class B{
A a=new A();
a.doSomeThing(1)
}
In the class B ,I call the method "a.doSomeThing()" of class A and passing a Invalid value to its parameter.Instead of passing an array I pass integer.Now Eclipse display some error indication,If I drag the mouse over the method name then eclipse display some information about the nature of error,such as wrong parameter passed.Here I want to display some friendly message when I drag the mouse over method name "a.doSomeThing(1)" .THis friendly messsage which I given in the javadoc of method