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

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

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?
What degree do data scientists have?
inheritance....please help me friends...!!!... this is important project that i have to do it..
How to uninstall JDK 7?
What changes I have to do in php.ini file for file uploading?
What is wrong with this line
How to install JDK 7 in 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......
Installing Java (JDK 7) on Windows 7 Computer Video Tutorial
Installing JDK 7 on Windows
Not sure whats wrong with my code HELP PLEASE?!?!
Interview Questions - What is JDK?
What is the use of JDK
what is wrong with my JSP codes for updating a form?
What is the difference between a JDK and a JVM?
what session.flush() do ?
where are the all library files of netbeans 7.0 ? Because it does not import the file,"java.nio.file.Paths"
What's wrong with my pagination code in JSP?
Do we have AI yet?
What's wrong with my form? - Java Beginners
What does COMMIT do?
ModuleNotFoundError: No module named 'corrections'
ModuleNotFoundError: No module named 'corrections'
a complete project on spring web mvc using oracle database in netbeans ide 7.0
What is difference between JDK,JRE and JVM?
how to do an measure converter in netbeans - Java Beginners
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
Do you have to be smart to be a data scientist?
Do I have to be good at math to be a data scientist?
What do you understand by JPA?
What do you mean by Serialized?
What do data scientists earn?
What do you learn in AI?
what is java and why do i need it?
what is the difference between jdk 1.4 and 1.5 and 1.6
have any one tried ajaxanywhere with jsp/servlet please provide sample
How to download JDK 1.6?
What do I need to do to use a MSSQL-Server with Web-Harvester?
What does a special set of tags <?= and ?> do in PHP?
What does hadoop fsck command do?