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?
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
what is wrong with this program
Installing JDK 7 on Windows
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?
what session.flush() do ?
what is wrong with my JSP codes for updating a form?
a complete project on spring web mvc using oracle database in netbeans ide 7.0
What's wrong with my pagination code in JSP?
What is difference between JDK,JRE and JVM?
jdk
please help me how to set up Netbeans for JSP
what is java and why do i need it?
What do you understand by JPA?
How to download JDK 1.6?
ModuleNotFoundError: No module named 'corrections'
ModuleNotFoundError: No module named 'corrections'
What do I need to do to use a MSSQL-Server with Web-Harvester?
what is the difference between jdk 1.4 and 1.5 and 1.6
What does hadoop fsck command do?

Ads