java code for file creation detection
<p>Could anyone please help me in this ?</p>

<ul>
<li>I need a java code which listens(in running state) file creation or deletion.</li>
<li>ie, Whenever a file created or deleted, the running code should detect that incident and retrieve the file path.</li>
</ul>

<p>Thanks, </p>
