Suppose a law is declared unconstitutional what can be done to change that?

You can make it constitutional by amending the constitution.

Added: OR - the legislature could re-introduce a replacement for the struck down law re-wording it and remedying the un-constitutional aspects of it.