Renaming a File 
<p>In my application there is a file available that<br> Say <strong>one.pdf</strong>. I want to change the file name as <strong>two.pdf</strong> with in the same directory.
<br>i tried using java which doesn't Work.   </p>

<pre><code>File f1=new File("E:\\one.pdf");
File f2=new File("E:\\two.pdf");
f1.renameTo(f2);
</code></pre>

<p>thanks.</p>
