what is wrong in this program?I have netbeans 7.0 & jdk 7. please do corrections.

Ads
 

what is wrong in this program?I have netbeans 7.0 & jdk 7. please do corrections.

import java.io.*;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.io.InputStream;
import java.nio.file.Paths;
import java.nio.channels.FileChannel;
import java.nio.file.StandardCopyOption.*;
import java.io.FileNotFoundException;

public class Test {
    public static void main(String[] args) {
        File source = new File("C:\\From\\figures.txt");
        File target = new File("C:\\To\\figures.txt");
        Path p1 = Paths.get("C:\\Temp\\source.txt");
        Files.copy(source, target, REPLACE_EXISTING);

    }
}
View Answers

Ads









Related Tutorials/Questions & Answers:
what is wrong in this program?I have netbeans 7.0 & jdk 7. please do corrections.
I have netbeans jdk 7.0, till it cann't import the file,"java.nio.file.Paths". Why?
Advertisements
How to uninstall JDK 7?
What changes I have to do in php.ini file for file uploading?
inheritance....please help me friends...!!!... this is important project that i have to do it..
What is wrong with this line
How to install JDK 7 in windows
Installing Java (JDK 7) on Windows 7 Computer Video Tutorial
Installing JDK 7 on Windows
what is wrong with this program
What is wrong with my servlet?
what is wrong in this program
what is wrong in this program......
Interview Questions - What is JDK?
Not sure whats wrong with my code HELP PLEASE?!?!
where are the all library files of netbeans 7.0 ? Because it does not import the file,"java.nio.file.Paths"
What is the difference between a JDK and a JVM?
a complete project on spring web mvc using oracle database in netbeans ide 7.0
what is wrong with my JSP codes for updating a form?
What's wrong with my pagination code in JSP?
what session.flush() do ?
What's wrong with my form? - Java Beginners
What does COMMIT do?
What is difference between JDK,JRE and JVM?
how to do an measure converter in netbeans - Java Beginners
jdk
What do you mean by Deadlock?
What does the delete operator do?
What does the delete operator do?
please help me how to set up Netbeans for JSP
How to download JDK 1.6?

Ads