title: Rename all files in a folder using java
body: <p>How can we rename all files in a folder using java?</p>
  
  <pre><code>C:/temp/pictures/1.jpg
  C:/temp/pictures/2.jpg
  C:/temp/pictures/3.jpg
  C:/temp/pictures/4.jpg
  C:/temp/pictures/5.jpg
  </code></pre>
  
  <p>Rename to</p>
  
  <pre><code>C:/temp/pictures/landscape_1.jpg
  C:/temp/pictures/landscape_2.jpg
  C:/temp/pictures/landscape_3.jpg
  C:/temp/pictures/landscape_4.jpg
  C:/temp/pictures/landscape_5.jpg
  </code></pre>
  
  <p>Kind regards</p>