Add some Java code

I put together a very simple base program on, I just need some code added to meet the task criteria – essentially an Action Listener and some algorithm such as:

if button-x is clicked followed immediately by button-y then directed to page which says “correct”, else gets sent to a page that says “incorrect”.

Is that something you can do ? It is fairly simple. I just do not know how to do it.

find the cost of your paper