Jonah begins to change his ways by turning to God in prayer. He talks about the extreme distress he is in and realizes God is the only one who can save him.
If you ever find yourself in a difficult spot because of your own poor choices, you can always turn to God for help. You may feel God will not listen because of your mistakes, but He still loves you. That’s not an excuse to go ahead and make the mistakes, but it does mean you can never sin too much for God to forgive.