Joptionpane showinputdialog return

Joptionpane showinputdialog return

Posted: topol On: 01.07.2017

I work on a project in Java for school, and I have a problem with JOptionPane.

This doesn't work, as I said. It will print out the variable test, instead of the string "Found it". Stack Overflow Questions Developer Jobs Documentation beta Tags Users.

joptionpane showinputdialog return

Sign up or log in to customize your list. Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us.

Calcular el índice de masa corporal con Java - Línea de Código

Log In Sign Up. Join the Stack Overflow Community.

joptionpane showinputdialog return

Stack Overflow is a community of 7. Join them; it only takes a minute: What does showInputDialog return?

SWING JOptionPane Class

This question already has an answer here: How do I compare strings in Java? Indeed, the output will be the empty String "" , the problem is how you compare the Strings. Mostafiz 5, 3 12 Stack Overflow works best with JavaScript enabled.

I tried to find it out by myself with this test-code: What must I enter in the if-query in case I enter nothing in the field and then hit 'OK'?

joptionpane showinputdialog return

Excuse my English, I'm Swiss. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3.

Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

Defensive Java Code - AKA Prevent Bad Input
Rating 4,5 stars - 278 reviews
inserted by FC2 system