Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Number Addition

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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
 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please don't post the same message more than once.
    Bookmark Topic Watch Topic
  • New Topic