Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Friday, February 7, 2014

Addition Example with Java

This post contains a java code that adds two input entered by the user and show the result. import java.awt.JobAttributes; import javax.swing.JOptionPane; public class Addition { public static void main(String args[]) { String number1, number2; Integer num1,num2,sum; number1 = JOptionPane.showInputDialog("Enter first number:"); number2 = JOptionPane.showInputDialog("Enter second number:"); ...
Read More