Java Registration Code