This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Number Addition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Number Addition

jason tourne
Greenhorn

Joined: Apr 01, 2011
Posts: 10
I am trying to add two ints taken from JOptionPane inputs and output the result in another JOptionPane. What I have so far is below, but I don't know what to put in the spaces provided.


___firstAmount = JOptionPane.___("First amount?");

int firstNumber = Integer.___(firstAmount);

____ secondAmount = JOptionPane.___("Second amount?");

int secondNumber = Integer.____(secondAmount);
int total = firstNumber + secondNumber;
___.___(null, ""___ ___);

What I think the first line first blank , is JOptionPane and I think the 4th link blank is parseInt. I need help filling out the rest
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4338
    
    7

Please don't post the same message more than once.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Number Addition
 
Similar Threads
Number Addition
Need help with class assignment
How to turn a class into an executable file
loops and boolean operators
JOptionPane Input Dialog is blank