how do you rename a file in java?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1158777/renaming-a-file-using-java">Renaming a file using Java</a>  </p>
</blockquote>



<p>renameFile: This method should take as input a String from and a String to. It should return a boolean. The method should find the index in drive of a file with name from. If no such index exists, the method should return false. It should also check that the file to does not exist. If the file to does exist, then the method should return false. If the file from exists and to does not, then the method should change the name of the file from from to be to. In this case, the method should return true</p>

<p>can someone show me how to do this?</p>
