Eclipse Export [message #774016] |
Tue, 03 January 2012 05:02 |
Eclipse Guest Messages: 93 Registered: February 2013 Location: Vienna |
Member |
|
|
I want to export this program as a single runnable file to email to a friend. How would you go about doing this?
Code:
import java.util.Scanner;
public class Addition {
public static void main(String[] args) {
System.out.println("Welcome To The Addition Calculator");
System.out.println("Please Type The First Number:");
Scanner scan = new Scanner(System.in);
double num1 = scan.nextDouble();
System.out.println("Please Type The Second Number:");
double num2 = scan.nextDouble();
double num3 = num1 + num2; //you could use int instead of double
System.out.println("The Anwser Is: " + num3);
}
}
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06509 seconds