How to save user input as a variable - The Better Way.

tldr
HOW TO PROMPT USER, GET INPUT,
 DO MATH, PRINT ANSWER!

//walloftext;
In How to use a Scanner, you learned that you can take input from a user using the scanner class.
Well, here's a cooler way to go about it. In the video, I'll go over how to prompt the user for input using
a pop-up, take the input and do some math with it and print the results to the screen.
Here's the code I'll go over:

DETAILED VIDEO BELOW

4 comments:

  1. How would I be able to have commas in numbers more than a thousand for the output using this JOption method?

    Thanks!

    ReplyDelete
  2. How do I create a test class in Netbeans?

    ReplyDelete
  3. How can i create a save button and Update Button And their source code???

    plzz help its my last Problem

    ReplyDelete
  4. Thanks if you help me in my Problem

    ReplyDelete