Help in Rotate Image in JAVA2D

Hello,

Please read:

We do not need to see your entire project.
Can you isolate the problem and provide a small example of only that code?
We should be able to run the small example of code.
Please format code that is posted to the forum.

All of the above helps us help you.

This is tagged as homework so it would be prudent not to post your entire academic work.
https://discourse.processing.org/faq#homework

:)