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?
How to uninstall JDK 7?
inheritance....please help me friends...!!!... this is important project that i have to do it..
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
Installing Java (JDK 7) on Windows 7 Computer Video Tutorial
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 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 the difference between a JDK and a JVM?
what is wrong with my JSP codes for updating a form?
where are the all library files of netbeans 7.0 ? Because it does not import the file,"java.nio.file.Paths"
what session.flush() do ?
What's wrong with my pagination code in JSP?
What's wrong with my form? - Java Beginners
Do we have AI yet?
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?
How to download JDK 1.6?
what is the difference between jdk 1.4 and 1.5 and 1.6
what is java and why do i need it?
have any one tried ajaxanywhere with jsp/servlet please provide sample
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?
Java 7 Features