Hello anyone i'm new here and i'm newbie of java.
Well i have this very simple java code:
import java.util.Scanner;
public class Calculation {
public static void main(String[] args) {
Scanner input = new Scanner( System.in );
double E;
double sum;
double sum2;
System.out.print("type values to a b and c ");
System.out.println();
System.out.println( "a= "); // prompt
double number1 = input.nextDouble();
System.out.println();
System.out.println( "b= "); // prompt
double number2 = input.nextDouble();
System.out.println();
System.out.println( "c= "); // prompt
double number3 = input.nextDouble();
sum2=number1+number2+number3;
sum = sum2/2; // add numbers
E=Math.sqrt(sum*(sum-number1)*(sum-number2)*(sum-number3));
System.out.println( "T=(a+b+c)/2 = "+sum ); // display sum
System.out.println("Ε="+"\u221A"+"T*(T-a)*(T-b)*(T-c)="+"\u221A"+sum+"*("+sum+"-"+number1+")*("+sum+"-"+number2+")*("+sum+"-"+number3+")= "+E+" m^2");
}
}
Well i need this to display on a window so if for example click my executable file to open a window