delete is pretty easy. you have the delete() method in the File class u can use.
to copy a file it is a bit more tricky (you can use the renameTo(File x) to rename it to the exact same name on a diffrent directory) or use this:
import java.io.*;
public class Ranch
{
public Ranch()
{
try{
FileInputStream in=new FileInputStream("your file here");
FileOutputStream out=new FileOutputStream("the copy file here");
byte buffer[]=new byte[4096];
int len;
while((len=in.read(buffer))!=-1)
out.write(buffer,0,len);
in.close();
out.close();
}
catch(IOException e){}
}
public static void main(
String args[])
{
Ranch x=new Ranch();
}
}