Moving files in java

iso

New Member
So far this is my code i would like to move the selected file to a path that i will define later in the code how do i get the path from the selcted file\[code\]import java.awt.Component;import javax.swing.JFileChooser;public class CopyFileExample { public static void main(String[] args) { final JFileChooser fc = new JFileChooser(); Component aComponent = null; int returnVal = fc.showOpenDialog(aComponent); }}\[/code\]
 
Top