So I've programmed my basic calculator and I'm fairly new to this, How would i take my basic program (Programmed in eclipse) and have it open something like it would any.exe program, Like the basic Windows 7 application, So the basic question is how to make my program written in eclipse and take it and have it open in a.exe kinda format for use?
My code:
import java.util.Scanner;
class apples{
public static void main(String args[]) {
Scanner Minecraft = new Scanner(System.in);
double fnum, snum, answer;
System.out.println("Enter the first number: ");
fnum = Minecraft.nextDouble();
System.out.println("Enter second number: ");
snum = Minecraft.nextDouble();
answer = fnum + snum;
System.out.println(answer);
}