I want to have one deprecated method in my code.What do Ineed to write in my code, so that when I compile, it shows me thewarning that <method-name> is deprecated.
I'm not sure, but I think you should add the following comment just beforethe declaration of your method:/** @deprecated */For more info, search for javadoc.