but then he can't sell it!
i dont know if i like copyrighting code however... i think you can copyright a "package" but not *code*
e.g. you can't copyright
Code:
System.out.println("my code!!!");
but you may be able to copyright your program... look into it, but unless you sell your code as a "package" i doubt if it can be copyrighted.