0
Is possible to get input in one if-statement(0) and print it out in another (1) in Java?
joptionpane showoptiondialog with two options (Input and print)
1 Answer
+ 1
Yes, but you need to define variable outside these blocks of code to be able to use it inside both blocks.
https://code.sololearn.com/ctxK8h561dd9/#java