data _null_; &Example7_Stop; dcl javaobj jd ('Example7'); jd.callIntMethod ('showOptionDialog', 'Two plus Two equals','Math question', 'Zero,One,Two,Three,Four,Five', x); put x=; length s $100; jd.callStringMethod ('getOptionSelected', s); put s=; if x = 4 then answer = trim(s)||' is correct'||'0a'x; else answer = trim(s)||' is incorrect'||'0a'x; jd.callVoidMethod ('showMessageDialog', trim(answer)||'Thank you for playing', 'Aloha'); run;