Menu
Coddy logo textTech

Practice #2

Lesson 10 of 11 in Coddy's File Handling in Java course.

challenge icon

Challenge

Easy

Write a function called copyCoddy that gets no arguments and copies the content of a file named "coddy.txt" to a file named "coddy2.txt".

Try it yourself

class CopyCoddy {
    public static void copyCoddy() {
        // Write code here
    }
}

All lessons in File Handling in Java