This is the complete code right?
Then you're missing the main method, which is needed as the entry point to your coding:
public class Camcorder{
public static void main(String[] args) {
Camcorder oComcorder = new Camcorder();
Camcorder.record();
}
you should also read here to understand what it is about:
Setting an Application's Entry Point[
^] @ Java Tutorials