If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

converting to JOptionPane

hi, all, ok, i admit, that this is my assignment, but i really can't crack the answer. it requires me to convert the scripts below to a JOptionPane... how can it be possible, thank you in advance for those who are willing to help:

Ok Zodoz, I wasn't aware of that. However, giving an assignment that requires the
students to do text "graphics" in a GUI isn't what I would call relevant education, but
then I have seen many examples of strange teachings presented by students in this
forum.