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)

13th Sep 2020, 12:03 PM
W. Khalid
1 Odpowiedź
+ 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
13th Sep 2020, 1:35 PM
Aleksandrs
Aleksandrs - avatar